Skip to content

Commit 1dbc069

Browse files
committed
TST: Speed up: cv=2
This is a smoke test. Hence there is no point having cv=4
1 parent d41b706 commit 1dbc069

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sklearn/preprocessing/tests/test_data.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import numpy.linalg as la
1111
from scipy import sparse
1212
from distutils.version import LooseVersion
13-
from sklearn.externals.six import u
1413

1514
from sklearn.utils import gen_batches
1615

@@ -1390,7 +1389,7 @@ def test_cv_pipeline_precomputed():
13901389
# test cross-validation, score should be almost perfect
13911390
# NB: this test is pretty vacuous -- it's mainly to test integration
13921391
# of Pipeline and KernelCenterer
1393-
y_pred = cross_val_predict(pipeline, K, y_true, cv=4)
1392+
y_pred = cross_val_predict(pipeline, K, y_true, cv=2)
13941393
assert_array_almost_equal(y_true, y_pred)
13951394

13961395

0 commit comments

Comments
 (0)