Skip to content
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

Creating Distributions with CustomDist #767

Open
jessegrabowski opened this issue Jan 18, 2025 · 2 comments
Open

Creating Distributions with CustomDist #767

jessegrabowski opened this issue Jan 18, 2025 · 2 comments
Labels
proposal New notebook proposal still up for discussion

Comments

@jessegrabowski
Copy link
Member

Notebook proposal

Title: Creating Distributions with CustomDist

Why should this notebook be added to pymc-examples?

This comes up a lot on the discourse, most recently here. New users struggle with the API since it's a bit closer to pytensor than the rest of PyMC. There's also some intricacy when one doesn't go the dist kwarg route. For example, you need to know to actually write in numpy/scipy for the random method, but you cannot do that anywhere else in PyMC!

Suggested categories:

  • Level: Intermediate
  • Diataxis type: How-to

Related notebooks

Closest existing notebook is the black-box likelihood, but that's even more advanced than what I'm proposing.

References

CustomDist API docs are already quite nice. I just envision something a bit more hand-holding with more pictures.

@jessegrabowski jessegrabowski added the proposal New notebook proposal still up for discussion label Jan 18, 2025
@ricardoV94
Copy link
Member

I would suggest not emphasizing the random method at all, since the dist can be used for the random part as well

@jessegrabowski
Copy link
Member Author

I agree the majority of the notebook should show how to work though the dist argument, but there should at least be a note at the bottom about the other way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal New notebook proposal still up for discussion
Projects
None yet
Development

No branches or pull requests

2 participants