@@ -62,7 +62,7 @@ def test_single_metric_sb_attains_min_quickly(four_by_five_grid_for_opt):
62
62
):
63
63
min_scores_sb [i ] = optimizer .best_score
64
64
65
- assert min_scores_sb [ - 1 ] == 11
65
+ assert np . min ( min_scores_sb ) == 11
66
66
67
67
68
68
def test_single_metric_tilted_sb_attains_min_quickly (four_by_five_grid_for_opt ):
@@ -109,7 +109,7 @@ def test_single_metric_tilted_sb_attains_min_quickly(four_by_five_grid_for_opt):
109
109
):
110
110
min_scores_sb [i ] = optimizer .best_score
111
111
112
- assert min_scores_sb [ - 1 ] == 11
112
+ assert np . min ( min_scores_sb ) == 11
113
113
114
114
115
115
def test_single_metric_variable_len_sb_attains_min_quickly (four_by_five_grid_for_opt ):
@@ -154,7 +154,7 @@ def test_single_metric_variable_len_sb_attains_min_quickly(four_by_five_grid_for
154
154
):
155
155
min_scores_sb [i ] = optimizer .best_score
156
156
157
- assert min_scores_sb [ - 1 ] == 11
157
+ assert np . min ( min_scores_sb ) == 11
158
158
159
159
160
160
# ========================
@@ -205,7 +205,7 @@ def test_single_metric_sa_jumpcycle_attains_min_quickly(four_by_five_grid_for_op
205
205
):
206
206
min_scores_anneal [i ] = optimizer .best_score
207
207
208
- assert min_scores_anneal [ - 1 ] == 11
208
+ assert np . min ( min_scores_anneal ) == 11
209
209
210
210
211
211
def test_single_metric_sa_lincycle_attains_min_quickly (four_by_five_grid_for_opt ):
@@ -250,7 +250,7 @@ def test_single_metric_sa_lincycle_attains_min_quickly(four_by_five_grid_for_opt
250
250
):
251
251
min_scores_anneal [i ] = optimizer .best_score
252
252
253
- assert min_scores_anneal [ - 1 ] == 11
253
+ assert np . min ( min_scores_anneal ) == 11
254
254
255
255
256
256
def test_single_metric_sa_linear_jumpcycle_attains_min_quickly (
@@ -297,7 +297,7 @@ def test_single_metric_sa_linear_jumpcycle_attains_min_quickly(
297
297
):
298
298
min_scores_anneal [i ] = optimizer .best_score
299
299
300
- assert min_scores_anneal [ - 1 ] == 11
300
+ assert np . min ( min_scores_anneal ) == 11
301
301
302
302
303
303
def test_single_metric_sa_logitcycle_attains_min_quickly (four_by_five_grid_for_opt ):
@@ -342,7 +342,7 @@ def test_single_metric_sa_logitcycle_attains_min_quickly(four_by_five_grid_for_o
342
342
):
343
343
min_scores_anneal [i ] = optimizer .best_score
344
344
345
- assert min_scores_anneal [ - 1 ] == 11
345
+ assert np . min ( min_scores_anneal ) == 11
346
346
347
347
348
348
def test_single_metric_sa_logit_jumpcycle_attains_min_quickly (
@@ -389,7 +389,7 @@ def test_single_metric_sa_logit_jumpcycle_attains_min_quickly(
389
389
):
390
390
min_scores_anneal [i ] = optimizer .best_score
391
391
392
- assert min_scores_anneal [ - 1 ] == 11
392
+ assert np . min ( min_scores_anneal ) == 11
393
393
394
394
395
395
# ===============
@@ -437,7 +437,7 @@ def test_single_metric_tilted_runs_attains_min_quickly_with_p_eq_0p1(
437
437
):
438
438
min_scores_tilt [i ] = optimizer .best_score
439
439
440
- assert min_scores_tilt [ - 1 ] == 11
440
+ assert np . min ( min_scores_tilt ) == 11
441
441
442
442
443
443
# ==========================
0 commit comments