-
-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
`Feature/1180 pathfinder single path csvs #1184
Conversation
Do we feel like this should interact with the diagnostic files at all? I know at the moment there are no multipath-pathfinder specific diagnostics in reality, so it might be odd to require the |
but this isn't required - |
I understand the current behavior, I'm asking if we think it should have an impact Imagine one day we actually use the argument for multi-pathfinder to have diagnostics (independent of the single path diagnostics). Then it would seem natural that this argument also controlled whether the single-path diagnostics were saved. |
I see - so if you want the diagnostics file then you'd probably want the single-path pathfinders as well? very elegant! |
I was thinking of more or less the flip of that - what should this argument do if there are multiple kinds of diagnostics (like there are multiple kinds of output csvs at the moment) |
add more arguments to pathfinder method that are fine-grained enough to handle this and forget about output arg |
I think I was unclear. This PR was motivated because the current “output” argument controls both the output of the PSIS draws and the individual paths. My point is just that one day, if we actually use the diagnostic file argument to the multi-path algorithm, we will have the same thing with the “diagnostic file” argument - some for the PSIS, some for single paths. Whether we care is another question, and the answer can be “no” |
if I understand correctly proposal is this:
and for the user docs, we should explain when |
Currently, this PR implements:
My question was, should the matrix look instead like:
As noted, there are currently no diagnostics for multi-path besides each individual path's diagnostics, but if we ever think there would be then maybe the second table makes more sense. Of course, if someone is asking for diagnostics, maybe it's fine just to give them more than they asked for. It's a much less common use case than output, at any rate |
two things:
|
…thub.com/stan-dev/cmdstan into feature/1180-pathfinder-single-path-csvs :wq# Please enter a commit message to explain why this merge is necessary,
…thub.com/stan-dev/cmdstan into feature/1180-pathfinder-single-path-csvs
…thub.com/stan-dev/cmdstan into feature/1180-pathfinder-single-path-csvs
per discussion w/ @WardBrian and @SteveBronder:
Question: what should single path pathfinder output file be named if
really, no preference here - option a) is perfectly reasonable and it's OK if non-default options result in complicated names. opinions? @bob-carpenter ? |
I think if num paths is 1 it should just be “output.csv”, and the diagnostic should probably come from the diagnostic file argument |
how about this: if if |
…thub.com/stan-dev/cmdstan into feature/1180-pathfinder-single-path-csvs
…thub.com/stan-dev/cmdstan into feature/1180-pathfinder-single-path-csvs
this is ready for re-review. these are the relevant combinations of arguments / output files
|
CI failed on upstream/(downstream?) performance tests - one of the benchmarks gold files is missing?
|
It’s because the performance tests request output files that end in .tmp: But the latest changes here (to make_filenames specifically) always overwrite that to be .csv |
Submisison Checklist
./runCmdStanTests.py src/test
Summary:
Added flag
save_single_path
to methodpathfinder
, per discussion in #1180Intended Effect:
Better user experience.
How to Verify:
Unit tests
Side Effects:
N/A
Documentation:
see PR stan-dev/docs#651
Copyright and Licensing
Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company): Columbia University
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses: