Skip to content

Commit ba849f4

Browse files
josephsalmonagramfort
authored andcommitted
Improve linear_model.rst : error on Huber function (scikit-learn#11384)
The subscript of the Huber function (H_m) was not relevant: it was written H_m but the index m was nowhere used later; it should have been epsilon instead.
1 parent e0aa211 commit ba849f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/modules/linear_model.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,13 +1137,13 @@ The loss function that :class:`HuberRegressor` minimizes is given by
11371137

11381138
.. math::
11391139
1140-
\underset{w, \sigma}{\min\,} {\sum_{i=1}^n\left(\sigma + H_m\left(\frac{X_{i}w - y_{i}}{\sigma}\right)\sigma\right) + \alpha {||w||_2}^2}
1140+
\underset{w, \sigma}{\min\,} {\sum_{i=1}^n\left(\sigma + H_{\epsilon}\left(\frac{X_{i}w - y_{i}}{\sigma}\right)\sigma\right) + \alpha {||w||_2}^2}
11411141
11421142
where
11431143

11441144
.. math::
11451145
1146-
H_m(z) = \begin{cases}
1146+
H_{\epsilon}(z) = \begin{cases}
11471147
z^2, & \text {if } |z| < \epsilon, \\
11481148
2\epsilon|z| - \epsilon^2, & \text{otherwise}
11491149
\end{cases}

0 commit comments

Comments
 (0)