10000 COSMIT Add a commnent on why >= instead of 0 · scikit-learn/scikit-learn@9a7a93a · GitHub
[go: up one dir, main page]

Skip to content

Commit 9a7a93a

Browse files
committed
COSMIT Add a commnent on why >= instead of 0
1 parent 899acfb commit 9a7a93a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sklearn/model_selection/tests/test_search.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -889,6 +889,8 @@ def test_search_cv_timing():
889889
for search in (gs, rs):
890890
search.fit(X, y)
891891
for key in ['mean_fit_time', 'std_fit_time']:
892+
# NOTE The precision of time.time in windows is not high
893+
# enough for the fit/score times to be non-zero for trivial X and y
892894
assert_true(np.all(search.cv_results_[key] >= 0))
893895
assert_true(np.all(search.cv_results_[key] < 1))
894896

0 commit comments

Comments
 (0)
0