Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3a1b4b8

Browse filesBrowse files
authored
DOC remove duplicated line of code in linear_model.rst (#19292)
1 parent ee32699 commit 3a1b4b8
Copy full SHA for 3a1b4b8

File tree

1 file changed

+0
-2
lines changed
Filter options

1 file changed

+0
-2
lines changed

‎doc/modules/linear_model.rst

Copy file name to clipboardExpand all lines: doc/modules/linear_model.rst
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ and will store the coefficients :math:`w` of the linear model in its
4343

4444
>>> from sklearn import linear_model
4545
>>> reg = linear_model.LinearRegression()
46-
>>> reg.fit ([[0, 0], [1, 1], [2, 2]], [0, 1, 2])
47-
LinearRegression()
4846
>>> reg.fit([[0, 0], [1, 1], [2, 2]], [0, 1, 2])
4947
LinearRegression()
5048
>>> reg.coef_

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.