Skip to content

Conversation

WardBrian
Copy link
Member

Submisison Checklist

  • Run tests: ./runCmdStanTests.py src/test
  • Declare copyright holder and open-source license: see below

Summary:

Adds an error thrown if num_chains was specified but the algorithm is not HMC with adaptation.

Intended Effect:

Closes #1057

How to Verify:

Try to run with adapt engaged=0 num_chains=2 or num_chains=2 algorithm=fixed_param and observe an error is thrown

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):

Simons Foundation
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses:

@WardBrian WardBrian requested a review from rok-cesnovar June 15, 2022 19:04
@rok-cesnovar
Copy link
Member

This does cover some cases, but I think there are still a few that are not caught by this (particularly running fixed_param still didn't error in my case). So it's an improvement to the status quo so I am good with merging this.

@WardBrian
Copy link
Member Author

Hm, it raises an error if you supply algorithm=fixed_param manually, but not if it is decided for you (e.g. the thing #1054 is trying to prevent)

@rok-cesnovar
Copy link
Member

@WardBrian
Copy link
Member Author

I’d rather we just consider #1054 again, but otherwise we should add an error there. The message will need to be very careful though, since it might be that the user didn’t specify anything incompatible

@WardBrian
Copy link
Member Author

@rok-cesnovar updated to also error in that case with a longer error

@WardBrian WardBrian merged commit 11ac7f0 into develop Jun 16, 2022
@WardBrian WardBrian deleted the fix/1057-num-chains-error-not-hmc branch June 16, 2022 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

num_chains argument fails silently for unsupported algorithms, still creates output files
2 participants