models.log_score()
Mean log score -(1/n) sum log f(y_i) of the outcomes under the
Usage
models.log_score(
family, y, mu, dispersion=1.0, weights=None, theta=None, power=None
)family’s predictive distribution; lower is better.
Parameters
family: stry: list of floatmu: list of floatdispersion: float = 1.0weights: list of float = Nonetheta: float = Nonepower: float = None
Returns
float
Examples
>>> from prospicio.models import log_score
>>> round(log_score("poisson", [0.0], [1.0]), 12)1.0