8000 ENH Improve speed plot_permutation_tests_for_classification.py (#21649) · glemaitre/scikit-learn@aba14c8 · GitHub
[go: up one dir, main page]

Skip to content

Commit aba14c8

Browse files
Sven Eschlbeckglemaitre
authored andcommitted
ENH Improve speed plot_permutation_tests_for_classification.py (scikit-learn#21649)
1 parent c18ab0f commit aba14c8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/model_selection/plot_permutation_tests_for_classification.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727
y = iris.target
2828

2929
# %%
30-
# We will also generate some random feature data (i.e., 2200 features),
30+
# We will also generate some random feature data (i.e., 20 features),
3131
# uncorrelated with the class labels in the iris dataset.
3232

3333
import numpy as np
3434

35-
n_uncorrelated_features = 2200
35+
n_uncorrelated_features = 20
3636
rng = np.random.RandomState(seed=0)
37-
# Use same number of samples as in iris and 2200 features
37+
# Use same number of samples as in iris and 20 features
3838
X_rand = rng.normal(size=(X.shape[0], n_uncorrelated_features))
3939

4040
# %%

0 commit comments

Comments
 (0)
0