@@ -103,26 +103,27 @@ def _get_required_dataset_properties(self, dataset: BaseDataset) -> Dict[str, An
103
103
def build_pipeline (self , dataset_properties : Dict [str , Any ]) -> TabularRegressionPipeline :
104
104
return TabularRegressionPipeline (dataset_properties = dataset_properties )
105
105
106
- def search (self ,
107
- optimize_metric : str ,
108
- X_train : Optional [Union [List , pd .DataFrame , np .ndarray ]] = None ,
109
- y_train : Optional [Union [List , pd .DataFrame , np .ndarray ]] = None ,
110
- X_test : Optional [Union [List , pd .DataFrame , np .ndarray ]] = None ,
111
- y_test : Optional [Union [List , pd .DataFrame , np .ndarray ]] = None ,
112
- dataset_name : Optional [str ] = None ,
113
- budget_type : Optional [str ] = None ,
114
- budget : Optional [float ] = None ,
115
- total_walltime_limit : int = 100 ,
116
- func_eval_time_limit : int = 60 ,
117
- traditional_per_total_budget : float = 0.1 ,
118
- memory_limit : Optional [int ] = 4096 ,
119
- smac_scenario_args : Optional [Dict [str , Any ]] = None ,
120
- get_smac_object_callback : Optional [Callable ] = None ,
121
- all_supported_metrics : bool = True ,
122
- precision : int = 32 ,
123
- disable_file_output : List = [],
124
- load_models : bool = True ,
125
- ) -> 'BaseTask' :
106
+ def search (
107
+ self ,
108
+ optimize_metric : str ,
109
+ X_train : Optional [Union [List , pd .DataFrame , np .ndarray ]] = None ,
110
+ y_train : Optional [Union [List , pd .DataFrame , np .ndarray ]] = None ,
111
+ X_test : Optional [Union [List , pd .DataFrame , np .ndarray ]] = None ,
112
+ y_test : Optional [Union [List , pd .DataFrame , np .ndarray ]] = None ,
113
+ dataset_name : Optional [str ] = None ,
114
+ budget_type : Optional [str ] = None ,
115
+ budget : Optional [float ] = None ,
116
+ total_walltime_limit : int = 100 ,
117
+ func_eval_time_limit_secs : Optional [int ] = None ,
118
+ enable_traditional_pipeline : bool = False ,
119
+ memory_limit : Optional [int ] = 4096 ,
120
+ smac_scenario_args : Optional [Dict [str , Any ]] = None ,
121
+ get_smac_object_callback : Optional [Callable ] = None ,
122
+ all_supported_metrics : bool = True ,
123
+ precision : int = 32 ,
124
+ disable_file_output : List = [],
125
+ load_models : bool = True ,
126
+ ) -> 'BaseTask' :
126
127
"""
127
128
Search for the best pipeline configuration for the given dataset.
128
129
@@ -147,16 +148,20 @@ def search(self,
147
148
in seconds for the search of appropriate models.
148
149
By increasing this value, autopytorch has a higher
149
150
chance of finding better models.
150
- func_eval_time_limit (int), (default=60 ): Time limit
151
+ func_eval_time_limit_secs (int), (default=None ): Time limit
151
152
for a single call to the machine learning model.
152
153
Model fitting will be terminated if the machine
153
154
learning algorithm runs over the time limit. Set
154
155
this value high enough so that typical machine
155
156
learning algorithms can be fit on the training
156
157
data.
157
- traditional_per_total_budget (float), (default=0.1):
158
- Percent of total walltime to be allocated for
159
- running traditional classifiers.
158
+ When set to None, this time will automatically be set to
159
+ total_walltime_limit // 2 to allow enough time to fit
160
+ at least 2 individual machine learning algorithms.
161
+ Set to np.inf in case no time limit is desired.
162
+ enable_traditional_pipeline (bool), (default=False):
163
+ Not enabled for regression. This flag is here to comply
164
+ with the API.
160
165
memory_limit (Optional[int]), (default=4096): Memory
161
166
limit in MB for the machine learning algorithm. autopytorch
162
167
will stop fitting the machine learning algorithm if it tries
@@ -219,8 +224,8 @@ def search(self,
219
224
budget_type = budget_type ,
220
225
budget = budget ,
221
226
total_walltime_limit = total_walltime_limit ,
222
- func_eval_time_limit = func_eval_time_limit ,
223
- traditional_per_total_budget = traditional_per_total_budget ,
227
+ func_eval_time_limit_secs = func_eval_time_limit_secs ,
228
+ enable_traditional_pipeline = enable_traditional_pipeline ,
224
229
memory_limit = memory_limit ,
225
230
smac_scenario_args = smac_scenario_args ,
226
231
get_smac_object_callback = get_smac_object_callback ,
0 commit comments