-
Notifications
You must be signed in to change notification settings - Fork 7
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
Bug report: Calibrate fails when there are no latent variables in the model #374
Comments
Minimal working example from notebook/july_evaluation/Scenario3/Scenario_3a.ipynb:
|
While I don't think this is a bug per-se, we could certainly be much much more informative about providing an error message when a user attempts to calibrate when there are no distributions on parameters. To clarify, here are the ways we interpret various configurations of distributions on model parameters and arguments to the
Therefore, it shouldn't be surprising that if no parameters have a distribution associated with them, that the calibration will throw an error. Again, we can make that error message more informative. |
Hi @SamWitty Thanks for clarifying, and what you say makes sense. I added few more tests to reveal some perhaps unexpected behaviors.
Is this what you expect? And if so, how should we document this behavior? |
The rule seems to be "There must be at least one parameter with a distribution that is not included in |
@djinnome , could you revisit this to see if the behavior persists with the new refactor? 4 -> This is a bug if it still holds, but I believe I have tests that address this. |
Closing this issue, as having all latent variables in the |
If I have an SIR model where both
beta
andgamma
are learnable parameters, then calibrate fails with this error:However, if either
beta
orgamma
(or both), then calibrate works.I will write a branch containing a set of unit tests that confirms this problem on an SIR model, and the PR will be ready for review when the tests no longer fail.
The text was updated successfully, but these errors were encountered: