We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5704442 commit 4d44c95Copy full SHA for 4d44c95
doc/common_pitfalls.rst
@@ -30,9 +30,8 @@ and the model will not be able to perform effectively.
30
For the following example, let's create a synthetic dataset with a
31
single feature::
32
33
-
34
35
- from sklearn.datasets import make_regression
+
+ >>> from sklearn.datasets import make_regression
36
>>> from sklearn.model_selection import train_test_split
37
...
38
>>> random_state = 42
@@ -225,4 +224,4 @@ Below are some tips on avoiding data leakage:
225
224
* The scikit-learn :ref:`pipeline <pipeline>` is a great way to prevent data
226
leakage as it ensures that the appropriate method is performed on the
227
correct data subset. The pipeline is ideal for use in cross-validation
228
- and hyper-parameter tuning functions.
+ and hyper-parameter tuning functions.
0 commit comments