Skip to content

Commit a2dac46

Browse files
nicholas-fwangagramfort
authored andcommitted
Fix minor typo in doc (scikit-learn#7001)
1 parent 97c47d9 commit a2dac46

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/tutorial/basic/tutorial.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ maintained::
308308
['setosa', 'setosa', 'setosa']
309309

310310
Here, the first ``predict()`` returns an integer array, since ``iris.target``
311-
(an integer array) was used in ``fit``. The second ``predict`` returns a string
311+
(an integer array) was used in ``fit``. The second ``predict()`` returns a string
312312
array, since ``iris.target_names`` was for fitting.
313313

314314

doc/tutorial/statistical_inference/supervised_learning.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ Linear models: :math:`y = X\beta + \epsilon`
187187

188188
>>> # Explained variance score: 1 is perfect prediction
189189
>>> # and 0 means that there is no linear relationship
190-
>>> # between X and Y.
190+
>>> # between X and y.
191191
>>> regr.score(diabetes_X_test, diabetes_y_test) # doctest: +ELLIPSIS
192192
0.5850753022690...
193193

0 commit comments

Comments
 (0)