-
Notifications
You must be signed in to change notification settings - Fork 11
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
Model selection example #6
base: master
Are you sure you want to change the base?
Conversation
It is confusing that random states are defined in models, but they are not actually used later. As random states (or fixed seeds) are not used results will change between runs, and it seems not to be uncommon for order of how good models are compared to each other to change in both cases. Using higher sample sizes or repeating experiment more times might fix this, but running notebook is incredible slow, when using higher sample sizes due batch_size=1. I don't blame anyone but Elfi for this, as using batch_size over one is too hard at the moment. In both cases "observed" data was generated with model that was one candidate in model selection. My intuition is that model selection would nearly always spot which one was used. However, this was not always the case, probably because experiment was repeated too few times or too few samples were used. |
@OssiGalkin The random state is used internally by ELFI, but indeed if the user does not provide a seed, its significance is hidden. Whether a seed should be used or not can be debated; the overall results should remain unchanged anyway... ...and if they don't, a larger sample size could indeed help. Using a larger |
The notebook gives a good demonstration of model selection using ELFI. I have no major comments, except that it would be nice to have a bit more of explanatory text between the code cells describing what is about to be done. I feel this would make the notebook into a more helpful tutorial. |
@vuolleko Fixed batch_size. Please, check it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A very concise notebook. A couple of comments
- It's a bit strange to have multiple separate graphs inside a single ELFI graph (model). On the other hand this approach is graphically attractive and works, so why not
- Perhaps would be more "notebook-style" to write descriptions as Markdown cells instead of Python comments, but not a big deal
- Since the simulators are cheap, the study could use more samples. Also, are the samples "good" i.e. how was the fixed threshold chosen?
Please fix the last point.
No description provided.