Skip to content

Instantly share code, notes, and snippets.

@drbenvincent
Last active December 29, 2021 02:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drbenvincent/f4f1826bebf810ca26b0046d33cfe116 to your computer and use it in GitHub Desktop.
Save drbenvincent/f4f1826bebf810ca26b0046d33cfe116 to your computer and use it in GitHub Desktop.
Plotting univariate distributions in PyMC3
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@harcel
Copy link

harcel commented Dec 24, 2021

Awesome, thanks!
The comment line before "pm.Discrete.plot = plot_disc" should probably say that this adds it to the Discrete abstract class, but that's just details.
Really cool. I have often been doing things like this by hand, and it never occurred to me to assign it to that class so easily. Thanks again and happy to follow along with the new youtube channel!

@drbenvincent
Copy link
Author

Thanks @harcel, I've made that edit. Hope to have more videos like it soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment