-
-
Notifications
You must be signed in to change notification settings - Fork 411
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
Attribute error when observed has multiple dimensions: MultiObservedRV #384
Comments
Will it create correct InferenceData object? |
Darn, I'd never even seen I think patching there will work, and will probably break a few plots that assume there is only 1 observed variable. Tests will continue to pass, since nothing checks for this. Maybe a solution is to add a survival model (like this, but with your likelihood) to the model zoo, and include plot(s) from it in the documentation. Is the model you're working with public, or could it be? |
Ok cool. I’ll make the changes and do a PR. And maybe add a test case or
two.
Happy to add it to the model zoo. Right now I’m running it on a publicly
available dataset as a POC so happy to share.
…On Wed, Oct 31, 2018 at 11:46 AM Colin ***@***.***> wrote:
Darn, I'd never even seen MultiObservedRV.
I think patching there will work, and will probably break a few plots that
assume there is only 1 observed variable. Tests will continue to pass,
since nothing checks for this.
Maybe a solution is to add a survival model (like this
<https://docs.pymc.io/notebooks/survival_analysis.html>, but with your
likelihood) to the model zoo, and include plot(s) from it in the
documentation. Is the model you're working with public, or could it be?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#384 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ANeLhZjJvsZ7LuVU4rRx8HipzanuamdUks5uqcXhgaJpZM4YEUUJ>
.
|
I just ran into the same problem. |
Hit the same issue when using
which gives the error:
Environment InfoPyMC3 3.6 |
@sidravi1 @mfansler @ColCarroll I was checking the state of this issue, and found out that latest release does not raise an error as it used to happen. There is no observed data though. I tried to modify io_pymc3 to retrieve this kind of data but I am not sure this is the right approach, I am not eve sure it would be helpful to have this kind of data stored. It would be great if somebody could try the code or review the PR. |
Here's a Weibull survival model in pymc3:
and the setting up the model
Running any of plots gives an Attribute error:
Poking around a bit, it looks like
MultiObservedRV
, doesn't create an observations parameter but instead saves in self.data:https://github.com/pymc-devs/pymc3/blob/master/pymc3/model.py#L1369
Suggestion on how to fix this? Is it as simple as just patching the PyMC3Converter class where it build the
observations
dict?https://github.com/arviz-devs/arviz/blob/master/arviz/data/io_pymc3.py#L110
I'm assuming just doing this will break some of the plots?
The text was updated successfully, but these errors were encountered: