File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,8 @@ and the model will not be able to perform effectively.
30
30
For the following example, let's create a synthetic dataset with a
31
31
single feature::
32
32
33
-
34
-
35
- from sklearn.datasets import make_regression
33
+
34
+ >>> from sklearn.datasets import make_regression
36
35
>>> from sklearn.model_selection import train_test_split
37
36
...
38
37
>>> 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
225
leakage as it ensures that the appropriate method is performed on the
227
226
correct data subset. The pipeline is ideal for use in cross-validation
228
- and hyper-parameter tuning functions.
227
+ and hyper-parameter tuning functions.
You can’t perform that action at this time.
0 commit comments