-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add CRPS for the logistic distribution #41
Conversation
where $\Phi(ω)$ and $\phi(ω)$ are respectively the CDF and PDF of the standard normal | ||
distribution at the normalized prediction error $\omega = \frac{y - \mu}{\sigma}$. | ||
where $F(\omega)$ is the CDF of the standard logistic distribution at the | ||
normalized prediction error $\omega = \frac{y - \mu}{\sigma}$. | ||
|
||
Parameters | ||
---------- | ||
observations: ArrayLike |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The type hint suggestion can be removed in the docstrings. When mkdocstrings
parses the code it will automatically infer the type from the function signature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(we will make sure to remove them from all other functions later)
|
||
Returns | ||
------- | ||
crps: array_like | ||
The CRPS between Normal(mu, sigma) and obs. | ||
The CRPS for the Logistic(mu, sigma) forecasts given the observations. | ||
|
||
Examples | ||
-------- | ||
>>> from scoringrules import crps |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All examples should use the main API:
import scoringrules as sr
sr.crps_logistic(...)
PR merged into PR for generalised truncated and censored logistic distribution |
No description provided.