Skip to content

Commit 9add691

Browse files
jnothmanlarsmans
authored andcommitted
DOC fix line references in tutorial
1 parent de66f6a commit 9add691

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

doc/tutorial/statistical_inference/model_selection.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ appended to their name.
213213
**Bonus**: How much can you trust the selection of alpha?
214214

215215
.. literalinclude:: ../../auto_examples/exercises/plot_cv_diabetes.py
216-
:lines: 11-22
216+
:lines: 17-24
217217

218218
**Solution:** :ref:`example_exercises_plot_cv_diabetes.py`
219219

doc/tutorial/statistical_inference/putting_together.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ can predict variables. We can also create combined estimators:
1717
:align: right
1818

1919
.. literalinclude:: ../../auto_examples/plot_digits_pipe.py
20-
:lines: 24-67
20+
:lines: 26-66
2121

2222

2323

doc/tutorial/statistical_inference/supervised_learning.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,6 @@ creating a decision energy by positioning *kernels* on observations:
567567
intuitions.
568568

569569
.. literalinclude:: ../../auto_examples/exercises/plot_iris_exercise.py
570-
:lines: 15-22
570+
:lines: 18-23
571571

572572
Solution: :download:`../../auto_examples/exercises/plot_iris_exercise.py`

doc/tutorial/statistical_inference/unsupervised_learning.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ clustering an image:
183183
:align: right
184184

185185
.. literalinclude:: ../../auto_examples/cluster/plot_lena_ward_segmentation.py
186-
:lines: 21-44
186+
:lines: 21-45
187187

188188
..
189189
>>> from sklearn.feature_extraction.image import grid_to_graph

examples/exercises/plot_cv_diabetes.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,18 @@
99
:ref:`model_selection_tut` section of the :ref:`stat_learn_tut_index`.
1010
"""
1111
from __future__ import print_function
12+
print(__doc__)
1213

1314
import numpy as np
1415
import matplotlib.pyplot as plt
1516

1617
from sklearn import cross_validation, datasets, linear_model
1718

18-
print(__doc__)
19-
2019
diabetes = datasets.load_diabetes()
2120
X = diabetes.data[:150]
2221
y = diabetes.target[:150]
2322

2423
lasso = linear_model.Lasso()
25-
2624
alphas = np.logspace(-4, -.5, 30)
2725

2826
scores = list()

0 commit comments

Comments
 (0)