Skip to content

Commit

Permalink
Update _classes.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fkiraly committed Sep 10, 2023
1 parent d2e88ca commit 81b2c99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion skpro/metrics/_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,8 @@ class LinearizedLogLoss(BaseDistrMetric):
For a predictive distribution :math:`d` with pdf :math:`p_d`
and a ground truth value :math:`y`, the linearized logarithmic loss is
defined as :math:`L(y, d) := -\log p_d(y)` if :math:`p_d(y) \geq r`,
and :math:`L(y, d) := -\log p_d(r) + 1 - \frac{1}{r} p_d(r) (y-r)` otherwise.
and :math:`L(y, d) := -\log p_d(r) + 1 - \frac{1}{r} p_d(r)` otherwise,
where :math:`r` is the range of linearization parameter, `range` below.
`evaluate` computes the average test sample loss.
`evaluate_by_index` produces the loss sample by test data point
Expand Down

0 comments on commit 81b2c99

Please sign in to comment.