scoringrules.logs_laplace#
- scoringrules.logs_laplace(obs: ArrayLike, location: ArrayLike = 0.0, scale: ArrayLike = 1.0, *, backend: Backend = None) ArrayLike#
Compute the logarithmic score (LS) for the Laplace distribution.
This score is equivalent to the negative log likelihood of the Laplace distribution
- Parameters:
- obsarray_like
Observed values.
- locationarray_like
Location parameter of the forecast laplace distribution.
- scalearray_like
Scale parameter of the forecast laplace distribution. The LS between obs and Laplace(location, scale).
- Returns:
- scorearray_like
The LS between obs and Laplace(location, scale).
Examples
>>> import scoringrules as sr >>> sr.logs_laplace(0.3, 0.1, 0.2)