Skip to content

Conversation

felixzinn
Copy link
Contributor

The syntax of the Poisson pdf is changed such that it takes the expectation directly (not the parameter value) and can be evaluated at a specific observation.

from evermore.pdf import Poisson

Poisson(lamb=expectation).log_prob(observation)

It can take continuous values for the observation as well which evermore.loss.PoissonLogLikelihood can not. With the new syntax PoissonLogLikelihood should not be necessary anymore.

@felixzinn felixzinn force-pushed the syntax-changes/poisson-pdf branch from 2dbc4db to 29ba13b Compare August 8, 2024 12:47
@felixzinn felixzinn marked this pull request as ready for review August 8, 2024 12:47
now the Poisson pdf takes the expectation directly as a value (not the parameter)
the `get_log_probs` function for the parameters was updated accordingly
normalization is now optional with default=True
@felixzinn felixzinn force-pushed the syntax-changes/poisson-pdf branch from 57646d1 to 5a2bd1c Compare August 13, 2024 13:43
@pfackeldey
Copy link
Owner

thanks! 🎉

@pfackeldey pfackeldey merged commit 14f9cb2 into pfackeldey:main Aug 13, 2024
3 checks passed
@felixzinn felixzinn deleted the syntax-changes/poisson-pdf branch August 14, 2024 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants