39
39
],
40
40
)
41
41
def test_basic (array_type , library , max_iter ):
42
- @gen_cluster (client = True , timeout = 5000 )
42
+ @gen_cluster (client = True )
43
43
def _test_basic (c , s , a , b ):
44
44
rng = da .random .RandomState (42 )
45
45
@@ -123,7 +123,7 @@ def _test_basic(c, s, a, b):
123
123
124
124
@pytest .mark .parametrize ("max_iter,aggressiveness" , [(27 , 3 ), (30 , 4 )])
125
125
def test_hyperband_mirrors_paper_and_metadata (max_iter , aggressiveness ):
126
- @gen_cluster (client = True , timeout = 5000 )
126
+ @gen_cluster (client = True )
127
127
def _test_mirrors_paper (c , s , a , b ):
128
128
X , y = make_classification (n_samples = 10 , n_features = 4 , chunks = 10 )
129
129
model = ConstantFunction ()
@@ -159,7 +159,7 @@ def _test_mirrors_paper(c, s, a, b):
159
159
_test_mirrors_paper ()
160
160
161
161
162
- @gen_cluster (client = True , timeout = 5000 )
162
+ @gen_cluster (client = True )
163
163
def test_hyperband_patience (c , s , a , b ):
164
164
# Test to make sure that specifying patience=True results in less
165
165
# computation
@@ -212,7 +212,7 @@ def test_hyperband_patience(c, s, a, b):
212
212
yield alg .fit (X , y )
213
213
214
214
215
- @gen_cluster (client = True , timeout = 5000 )
215
+ @gen_cluster (client = True )
216
216
def test_cv_results_order_preserved (c , s , a , b ):
217
217
X , y = make_classification (n_samples = 10 , n_features = 4 , chunks = 10 )
218
218
model = ConstantFunction ()
@@ -228,7 +228,7 @@ def test_cv_results_order_preserved(c, s, a, b):
228
228
assert np .allclose (row ["test_score" ], model_info ["score" ])
229
229
230
230
231
- @gen_cluster (client = True , timeout = 5000 )
231
+ @gen_cluster (client = True )
232
232
def test_successive_halving_params (c , s , a , b ):
233
233
# Makes sure when SHAs are fit with values from the "SuccessiveHalvingSearchCV
234
234
# params" key, the number of models/calls stay the same as Hyperband.
@@ -252,7 +252,7 @@ def test_successive_halving_params(c, s, a, b):
252
252
assert true_meta ["partial_fit_calls" ] == sum (pf_calls )
253
253
254
254
255
- @gen_cluster (client = True , timeout = 5000 )
255
+ @gen_cluster (client = True )
256
256
def test_correct_params (c , s , a , b ):
257
257
# Makes sure that Hyperband has the correct parameters.
258
258
@@ -335,7 +335,7 @@ def test_params_passed():
335
335
336
336
# decay_rate warnings are tested in test_incremental_warns.py
337
337
@pytest .mark .filterwarnings ("ignore:decay_rate" )
338
- @gen_cluster (client = True , timeout = 5000 )
338
+ @gen_cluster (client = True )
339
339
def test_same_random_state_same_params (c , s , a , b ):
340
340
# This makes sure parameters are sampled correctly when random state is
341
341
# specified.
@@ -400,7 +400,7 @@ def test_random_state_no_seed_different_params():
400
400
assert h1 ._SHA_seed == h2 ._SHA_seed
401
401
402
402
403
- @gen_cluster (client = True , timeout = 5000 )
403
+ @gen_cluster (client = True )
404
404
def test_min_max_iter (c , s , a , b ):
405
405
# This test makes sure Hyperband works with max_iter=1.
406
406
# Tests for max_iter < 1 are in test_incremental.py.
@@ -413,7 +413,7 @@ def test_min_max_iter(c, s, a, b):
413
413
assert h .best_score_ > 0
414
414
415
415
416
- @gen_cluster (client = True , timeout = 5000 )
416
+ @gen_cluster (client = True )
417
417
def test_history (c , s , a , b ):
418
418
# This test is required to make sure Hyperband wraps SHA successfully
419
419
# Mostly, it's a test to make sure ordered by time
@@ -440,7 +440,7 @@ def test_history(c, s, a, b):
440
440
assert (np .diff (calls ) >= 1 ).all () or len (calls ) == 1
441
441
442
442
443
- @gen_cluster (client = True , timeout = 5000 )
443
+ @gen_cluster (client = True )
444
444
def test_logs_dont_repeat (c , s , a , b ):
445
445
# This test is necessary to make sure the dask_ml.model_selection logger
446
446
# isn't piped to stdout repeatedly.
0 commit comments