-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
blackbox_external_likelihood notebook is broken #4002
Comments
This notebook seems problematic for long-term maintenance. Perhaps it would be better-suited for a blog post rather than a permanent fixture in the repository. Should we remove it? |
I agree with Chris' assessment -- this NB was already problematic when we did batch runs for 3.9.0 release. |
This is a pretty good example and I would prefer it to be on the website so it is more complete. We do also have a few other examples that are difficult to maintain (e.g., the LDA one, the VI one that depends on the deprecated Keras version), not sure what is the best course of action here |
(Also, blackbox_external_likelihood is initially a blog post and we ask the author to contribute as an example) |
Perhaps we can have static examples that are not meant to be reproducible notebooks. If its already a blog post from the author, perhaps we can just link to it. We talked at the last lab meeting about moving all of the notebooks out of the main repo and into their own. It might be time to do this. |
@junpenglao Why is this a good example? Currently it blows up (even if you can get through the cython stuff) because it uses a free random variable as an observation. This is definitely something that ArviZ does not expect, because it messes up the notion of Could the core message of this notebook -- explaining how to use a complex external function as likelihood -- be liberated from its use of a free RV as observation? In that case, I agree that it would be good to keep. |
I am trying to set up MCMC sampling from a custom model. I am new to pymc and ran into this issue when trying to follow the example. Are there any other resources on how to set up sampling from a black box function you could point me to? |
I remember @rpgoldman proposing to split current
Have I missed something? @junpenglao @fonnesbeck ? |
@OriolAbril I think we should go with the second option. Do you have time to implement this fix? |
Not right now but I should have time in a couple weeks from now. I'll comment here whenever I get to it to allow anyone who has the time to comment here and work on it without duplicating any work |
I have started working on this, I'll run some tests and hopefully submit a PR in the following days |
Hello, |
Is there any progress on this? |
I'm not sure I know exactly what "this" is so I'll try to be thorough:
I am therefore closing this issue in favour of pymc-devs/pymc-examples#48 because the notebook doesn't live in this repo anymore but on pymc-examples. |
Description of your problem
Investigating this ArviZ issue, I found that it was an attempt to recode this notebook: blackbox_external_likelihood.ipynb. Trying to run this, I find that it fails for a number of reasons:
%%cython
magic could be modified based on platform, but I don't know how to do this.my_model
C function, it errored out, saying that this function was not defined.observed
, which does not seem to work (and even if it did, breaks ArviZ).I don't know where to begin to fix this. I think it should either be fixed or removed, though.
Please provide a minimal, self-contained, and reproducible example.
Load this notebook into jupyter and try to execute it.
Please provide the full traceback.
Versions and main components
pip -e
from sourceThe text was updated successfully, but these errors were encountered: