Skip to content

Commit 4d44c95

Browse files
authored
DOC Fixes common pitfalls (scikit-learn#18617)
1 parent 5704442 commit 4d44c95

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

doc/common_pitfalls.rst

+3-4
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@ and the model will not be able to perform effectively.
3030
For the following example, let's create a synthetic dataset with a
3131
single feature::
3232

33-
34-
35-
from sklearn.datasets import make_regression
33+
34+
>>> from sklearn.datasets import make_regression
3635
>>> from sklearn.model_selection import train_test_split
3736
...
3837
>>> random_state = 42
@@ -225,4 +224,4 @@ Below are some tips on avoiding data leakage:
225224
* The scikit-learn :ref:`pipeline <pipeline>` is a great way to prevent data
226225
leakage as it ensures that the appropriate method is performed on the
227226
correct data subset. The pipeline is ideal for use in cross-validation
228-
and hyper-parameter tuning functions.
227+
and hyper-parameter tuning functions.

0 commit comments

Comments
 (0)