Skip to content

Commit e907705

Browse files
DOC cleaned descriptive paragraph for linear regression example (scikit-learn#18348)
Co-authored-by: Guillaume Lemaitre <[email protected]>
1 parent 92e7470 commit e907705

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

examples/linear_model/plot_ols.py

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,15 @@
55
=========================================================
66
Linear Regression Example
77
=========================================================
8-
This example uses the only the first feature of the `diabetes` dataset, in
9-
order to illustrate a two-dimensional plot of this regression technique. The
10-
straight line can be seen in the plot, showing how linear regression attempts
11-
to draw a straight line that will best minimize the residual sum of squares
12-
between the observed responses in the dataset, and the responses predicted by
13-
the linear approximation.
14-
15-
The coefficients, the residual sum of squares and the coefficient
16-
of determination are also calculated.
17-
8+
The example below uses only the first feature of the `diabetes` dataset,
9+
in order to illustrate the data points within the two-dimensional plot.
10+
The straight line can be seen in the plot, showing how linear regression
11+
attempts to draw a straight line that will best minimize the
12+
residual sum of squares between the observed responses in the dataset,
13+
and the responses predicted by the linear approximation.
14+
15+
The coefficients, residual sum of squares and the coefficient of
16+
determination are also calculated.
1817
"""
1918
print(__doc__)
2019

0 commit comments

Comments
 (0)