@@ -1585,10 +1585,10 @@ better than an ordinary least squares in high dimension.
15851585Huber Regression
15861586----------------
15871587
1588- The :class: `HuberRegressor ` is different to :class: `Ridge ` because it applies a
1589- linear loss to samples that are classified as outliers.
1588+ The :class: `HuberRegressor ` is different from :class: `Ridge ` because it applies a
1589+ linear loss to samples that are defined as outliers by the ` epsilon ` parameter .
15901590A sample is classified as an inlier if the absolute error of that sample is
1591- lesser than a certain threshold. It differs from :class: `TheilSenRegressor `
1591+ lesser than the threshold ` epsilon ` . It differs from :class: `TheilSenRegressor `
15921592and :class: `RANSACRegressor ` because it does not ignore the effect of the outliers
15931593but gives a lesser weight to them.
15941594
@@ -1603,13 +1603,13 @@ but gives a lesser weight to them.
16031603
16041604.. dropdown :: Mathematical details
16051605
1606- The loss function that :class: `HuberRegressor ` minimizes is given by
1606+ :class: `HuberRegressor ` minimizes
16071607
16081608 .. math ::
16091609
16101610 \min _{w, \sigma } {\sum _{i=1 }^n\left (\sigma + H_{\epsilon }\left (\frac {X_{i}w - y_{i}}{\sigma }\right )\sigma \right ) + \alpha {||w||_2 }^2 }
16111611
1612- where
1612+ where the loss function is given by
16131613
16141614 .. math ::
16151615
@@ -1624,7 +1624,7 @@ but gives a lesser weight to them.
16241624 .. rubric :: References
16251625
16261626 * Peter J. Huber, Elvezio M. Ronchetti: Robust Statistics, Concomitant scale
1627- estimates, pg 172
1627+ estimates, p. 172.
16281628
16291629The :class: `HuberRegressor ` differs from using :class: `SGDRegressor ` with loss set to `huber `
16301630in the following ways.
@@ -1638,10 +1638,10 @@ in the following ways.
16381638 samples while :class: `SGDRegressor ` needs a number of passes on the training data to
16391639 produce the same robustness.
16401640
1641- Note that this estimator is different from the R implementation of Robust Regression
1642- ( https://stats.oarc.ucla.edu/r/dae/robust-regression/) because the R implementation does a weighted least
1643- squares implementation with weights given to each sample on the basis of how much the residual is
1644- greater than a certain threshold.
1641+ Note that this estimator is different from the ` R implementation of Robust
1642+ Regression < https://stats.oarc.ucla.edu/r/dae/robust-regression/> `_ because the R
1643+ implementation does a weighted least squares implementation with weights given to each
1644+ sample on the basis of how much the residual is greater than a certain threshold.
16451645
16461646.. _quantile_regression :
16471647
0 commit comments