-
-
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
Traceplot hangs with 3.7.rc1 #3489
Comments
Looks like that's b/c Arviz splits variables with multiple values, in this case 58 onto separate axes, vs the old behavior of plotting on the same axis. Perhaps there could be a warning or error if the number of traces for a variables exceeds some threshold? |
arviz is looking at allowing the "old" behavior, then pymc3 can default to that. there's also an issue there to have a global configuration for the number of subplots it will create, and to have it fail if you ask for too many (you can change the config with code). do you think those changes will fix this? |
Hi @ColCarroll I think at least for the short/mid term it'd be great to have PyMC3 traceplots by default behave in the old way! Making the new behavior optional and configurable also sound like good ideas to me. |
agreed, I don't really like the new default traceplot behavior. If something has too many dimensions for a single subplot it'll also have too many for multiple subplots, just in one case I get a plot while jn the other it just hangs. |
This is addressed by arviz-devs/arviz#679 -- i'll make a PR to make this behavior default for |
I'm trying to plot a trace for 2 variables from a Dirichlet-Multinomial model, where
sd
has 1 value, andalpha
has 58 values.Using
pymc==3.6
this ran fine in less than 30 secs or so.In
3.7.rc1
(installed viapip install pymc3==3.7rc1
) this hangs at 100% CPU (longest I've let it run was 12 minutes before stopping the jupyter kernel).I've tried with both the old
varnames
and the newvar_names
.Plotting the single-value
sd
parameter by itself works:However, including
alpha
causes the plot to hang.The trace
trace_sku
was run with 4 chains, 2,000 draws each and 1,000 tuning steps each, so contains 8,000 non-tuning step samples:Parameters I'm trying to plot:
Parameters I'm not trying to plot, b/c they're too large for a traceplot:
Versions:
The text was updated successfully, but these errors were encountered: