@@ -139,7 +139,7 @@ def test_deterministic_prediction(data, prediction):
139139 y_dim = data .y_dim ,
140140 n_actions = 1 ,
141141 pop_size = 200 ,
142- max_trials = 1000 ,
142+ max_trials = 100 ,
143143 random_state = SEED ,
144144 prediction = prediction ,
145145 )
@@ -329,7 +329,7 @@ def _test_pop_replace(
329329 X = np .random .random ((n , dx ))
330330 y = np .random .randn (n , 1 )
331331
332- xcs = xcsf .XCS (x_dim = dx , pop_size = 5 , max_trials = 1000 , pop_init = pop_init )
332+ xcs = xcsf .XCS (x_dim = dx , pop_size = 5 , max_trials = 100 , pop_init = pop_init )
333333 xcs .fit (X , y , verbose = False )
334334
335335 # Initial, “too large” population.
@@ -388,7 +388,7 @@ def test_pop_replace(
388388def test_pop_replace_empty (tmp_path ):
389389 # Init'ing the pop and overwriting it with an empty one using the clean
390390 # option should result in an empty pop.
391- xcs = xcsf .XCS (pop_size = 100 , max_trials = 1000 , pop_init = True )
391+ xcs = xcsf .XCS (pop_size = 100 , max_trials = 100 , pop_init = True )
392392
393393 assert xcs .pset_size () == 100
394394
@@ -401,7 +401,7 @@ def test_pop_replace_empty(tmp_path):
401401
402402 # Not init'ing the pop and overwriting it with an empty one using the clean
403403 # option should keep the pop empty.
404- xcs = xcsf .XCS (pop_size = 100 , max_trials = 1000 , pop_init = False )
404+ xcs = xcsf .XCS (pop_size = 100 , max_trials = 100 , pop_init = False )
405405
406406 assert xcs .pset_size () == 0
407407
@@ -414,7 +414,7 @@ def test_pop_replace_empty(tmp_path):
414414
415415 # Init'ing the pop and overwriting it with an empty one but without using
416416 # the clean option should not empty the pop.
417- xcs = xcsf .XCS (pop_size = 100 , max_trials = 1000 , pop_init = True )
417+ xcs = xcsf .XCS (pop_size = 100 , max_trials = 100 , pop_init = True )
418418
419419 assert xcs .pset_size () == 100
420420
0 commit comments