Skip to content

Commit

Permalink
DOC fix minor typo (#23414)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgilbertson authored and glemaitre committed May 19, 2022
1 parent 0cbced9 commit 1c4d5cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/tutorial/statistical_inference/supervised_learning.rst
Expand Up @@ -133,7 +133,7 @@ Linear model: from regression to sparsity
.. topic:: Diabetes dataset

The diabetes dataset consists of 10 physiological variables (age,
sex, weight, blood pressure) measure on 442 patients, and an
sex, weight, blood pressure) measured on 442 patients, and an
indication of disease progression after one year::

>>> diabetes_X, diabetes_y = datasets.load_diabetes(return_X_y=True)
Expand Down Expand Up @@ -309,7 +309,7 @@ informative features and set non-informative ones, like feature 2 to 0. Ridge
regression will decrease their contribution, but not set them to zero. Another
penalization approach, called :ref:`lasso` (least absolute shrinkage and
selection operator), can set some coefficients to zero. Such methods are
called **sparse method** and sparsity can be seen as an
called **sparse methods** and sparsity can be seen as an
application of Occam's razor: *prefer simpler models*.

::
Expand Down

0 comments on commit 1c4d5cf

Please sign in to comment.