8000 DOC Small fixes in Tweedie deviances documentation (#22952) · scikit-learn/scikit-learn@8d295fb · GitHub
[go: up one dir, main page]

Skip to content

Commit 8d295fb

Browse files
ctwthomasjpfan
andauthored
DOC Small fixes in Tweedie deviances documentation (#22952)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
1 parent e59cc46 commit 8d295fb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/modules/model_evaluation.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2375,10 +2375,10 @@ is defined as
23752375
\sum_{i=0}^{n_\text{samples} - 1}
23762376
\begin{cases}
23772377
(y_i-\hat{y}_i)^2, & \text{for }p=0\text{ (Normal)}\\
2378-
2(y_i \log(y/\hat{y}_i) + \hat{y}_i - y_i), & \text{for }p=1\text{ (Poisson)}\\
2378+
2(y_i \log(y_i/\hat{y}_i) + \hat{y}_i - y_i), & \text{for }p=1\text{ (Poisson)}\\
23792379
2(\log(\hat{y}_i/y_i) + y_i/\hat{y}_i - 1), & \text{for }p=2\text{ (Gamma)}\\
23802380
2\left(\frac{\max(y_i,0)^{2-p}}{(1-p)(2-p)}-
2381-
\frac{y\,\hat{y}^{1-p}_i}{1-p}+\frac{\hat{y}^{2-p}_i}{2-p}\right),
2381+
\frac{y_i\,\hat{y}_i^{1-p}}{1-p}+\frac{\hat{y}_i^{2-p}}{2-p}\right),
23822382
& \text{otherwise}
23832383
\end{cases}
23842384
@@ -2390,8 +2390,8 @@ distribution (``power=0``), quadratically. In general, the higher
23902390
``power`` the less weight is given to extreme deviations between true
23912391
and predicted targets.
23922392

2393-
For instance, let's compare the two predictions 1.0 and 100 that are both
2394-
50% of their corresponding true value.
2393+
For instance, let's compare the two predictions 1.5 and 150 that are both
2394+
50% larger than their corresponding true value.
23952395

23962396
The mean squared error (``power=0``) is very sensitive to the
23972397
prediction difference of the second point,::

0 commit comments

Comments
 (0)
0