-
-
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
Standardize names for common variables and quantities in the Jupyter Notebook Style Guide #4821
Comments
Working with For many visualizations one wants to pool samples from all chains. In my experience this is the least verbose way: with pmodel:
idata = pm.sample()
posterior = idata.posterior.stack(sample=("chain", "draw")) It it's not in there we should discourage interactive plots, because they don't render on the docs. Unless there's a way to work around that and at least show the default render? |
I've always thought calling the output from sampling |
idata sounds like a good default, my main pet pevee with idata/trace is that now due to changing from multitrace to inferencedata, trace is now used somewhat arbitrarily between multitrace, inferencedata or the posterior group of the inferencedata which I find quite confusing. |
As commented in the doc meeting, here are my personal conventions and fallbacks which we could use as starting point for that. I think that this can be very useful especially as recommendation so that people who hesitate on a name can come here and both save time when writing and build a more homogeneous gallery.
This is everything that came to mind after a bit of thinking and it goes way beyond the original intent of the issue with many suggestions completely unrelated from pymc. |
I prefer Instead of fig, axs = pyplot.subplots()
axs[0, 1].plot(...)
axs[0, 1].set(...)
axs[1. 2].scatter(...) create local ax = axs[0, 1]
ax.plot(...)
ax.set(...)
ax = axs[1, 2]
ax.scatter(...) The advantage is that it's much easier to switch subplot positions, or to move plotting code around. Another looping style preference: When using for p, person in enumerate(persons) |
Standardize names for common variables and quantities in the Jupyter Notebook Style Guide, so that the style is consistent throughout the documentation.
Suggestion by @OriolAbril :
The text was updated successfully, but these errors were encountered: