-
-
Notifications
You must be signed in to change notification settings - Fork 126
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
plot predictions shape error with multinomial model #849
Comments
This was my response to Alex. I think you are getting the error because you are predicting multiple outcomes, and not passing the column name estimate_dim to subplot_kwargs. In your first code snippet where you print the summary dataframe, you will see that column. The following should work: _, ax = bmb.interpret.plot_predictions(
multinomial_model_bambi,
idata_multinomial_bambi,
conditional={
"cat1": ["A", "B"],
"name": ["name1", ..., "name10"],
},
subplot_kwargs={"main": "cat1", "group": "name", "panel": "estimate_dim"},
); What I noticed is that it is not obvious that you can pass the column name |
I'm not sure I understand if this is a bug or something we should document better 😅 |
It's definitely something I would like to document better. From an interface point of view, I think the first plot in my comment above should render because: (1) the I will work on this :) |
@GStechschulte amazing, just ping me if you want review or help :) |
@AlexAndorra raised a question/issue in the LB stats Slack. Posting here.
I'm doing something like this:
which works great, but then when trying to get the plot:
that raises a weird error:
ValueError: x and y must be the same size
The text was updated successfully, but these errors were encountered: