88
99from ax .core .metric import Metric
1010from ax .exceptions .core import OptimizationNotConfiguredError , UserInputError
11- from ax .orchestration .orchestrator import OrchestratorOptions
1211from ax .utils .common .complexity_utils import (
1312 check_if_in_standard ,
1413 DEFAULT_TIER_MESSAGES ,
@@ -29,7 +28,6 @@ class TestSummarizeAxOptimizationComplexity(TestCase):
2928 def setUp (self ) -> None :
3029 super ().setUp ()
3130 self .experiment = get_experiment ()
32- self .options = OrchestratorOptions ()
3331 self .tier_metadata : dict [str , object ] = {}
3432
3533 def test_basic_experiment_summary (self ) -> None :
@@ -38,7 +36,6 @@ def test_basic_experiment_summary(self) -> None:
3836 # WHEN we summarize the experiment
3937 summary = summarize_ax_optimization_complexity (
4038 experiment = self .experiment ,
41- options = self .options ,
4239 tier_metadata = self .tier_metadata ,
4340 )
4441
@@ -57,7 +54,6 @@ def test_multi_objective_experiment(self) -> None:
5754 # WHEN we summarize the experiment
5855 summary = summarize_ax_optimization_complexity (
5956 experiment = experiment ,
60- options = self .options ,
6157 tier_metadata = self .tier_metadata ,
6258 )
6359
@@ -75,7 +71,6 @@ def test_experiment_without_optimization_config_raises(self) -> None:
7571 ):
7672 summarize_ax_optimization_complexity (
7773 experiment = self .experiment ,
78- options = self .options ,
7974 tier_metadata = self .tier_metadata ,
8075 )
8176
@@ -106,7 +101,6 @@ def test_tier_metadata_extraction(self) -> None:
106101 # WHEN we summarize the experiment
107102 summary = summarize_ax_optimization_complexity (
108103 experiment = self .experiment ,
109- options = self .options ,
110104 tier_metadata = tier_metadata ,
111105 )
112106
@@ -115,21 +109,17 @@ def test_tier_metadata_extraction(self) -> None:
115109 self .assertEqual (summary .uses_standard_api , expected_all_configs )
116110
117111 def test_orchestrator_options_extraction (self ) -> None :
118- # GIVEN custom orchestrator options
119- options = OrchestratorOptions (
120- tolerated_trial_failure_rate = 0.25 ,
121- max_pending_trials = 5 ,
122- min_failed_trials_for_failure_rate_check = 10 ,
123- )
124-
112+ # GIVEN custom options
125113 # WHEN we summarize the experiment
126114 summary = summarize_ax_optimization_complexity (
127115 experiment = self .experiment ,
128- options = options ,
129116 tier_metadata = self .tier_metadata ,
117+ tolerated_trial_failure_rate = 0.25 ,
118+ max_pending_trials = 5 ,
119+ min_failed_trials_for_failure_rate_check = 10 ,
130120 )
131121
132- # THEN the summary should reflect orchestrator options
122+ # THEN the summary should reflect the options
133123 self .assertEqual (summary .tolerated_trial_failure_rate , 0.25 )
134124 self .assertEqual (summary .max_pending_trials , 5 )
135125 self .assertEqual (summary .min_failed_trials_for_failure_rate_check , 10 )
@@ -141,7 +131,6 @@ def test_parameter_constraints_counted(self) -> None:
141131 # WHEN we summarize the experiment
142132 summary = summarize_ax_optimization_complexity (
143133 experiment = experiment ,
144- options = self .options ,
145134 tier_metadata = self .tier_metadata ,
146135 )
147136
@@ -158,7 +147,6 @@ def test_merge_multiple_curves_detection(self) -> None:
158147 # WHEN we summarize the experiment
159148 summary = summarize_ax_optimization_complexity (
160149 experiment = self .experiment ,
161- options = self .options ,
162150 tier_metadata = self .tier_metadata ,
163151 )
164152
0 commit comments