Skip to content

Commit

Permalink
TST: Speed up: cv=2
Browse files Browse the repository at this point in the history
This is a smoke test. Hence there is no point having cv=4
  • Loading branch information
GaelVaroquaux committed Jun 22, 2016
1 parent d41b706 commit 1dbc069
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sklearn/preprocessing/tests/test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import numpy.linalg as la
from scipy import sparse
from distutils.version import LooseVersion
from sklearn.externals.six import u

from sklearn.utils import gen_batches

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


Expand Down

0 comments on commit 1dbc069

Please sign in to comment.