File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
ads/opctl/operator/lowcode/forecast Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -149,6 +149,7 @@ def create_operator_config(
149149 backtest_spec ["output_directory" ] = {"url" : output_file_path }
150150 backtest_spec ["target_category_columns" ] = [DataColumns .Series ]
151151 backtest_spec ["generate_explanations" ] = False
152+ backtest_spec .pop ('postprocessing' , None )
152153 cleaned_config = self .remove_none_values (backtest_op_config_draft )
153154
154155 backtest_op_config = ForecastOperatorConfig .from_dict (obj_dict = cleaned_config )
@@ -233,12 +234,6 @@ def find_best_model(
233234 nonempty_metrics = {
234235 model : metric for model , metric in metrics .items () if metric != {}
235236 }
236- if not nonempty_metrics :
237- model = SupportedModels .Prophet
238- logger .warning (
239- f"No valid metrics calculated for any model. Defaulting to { model } ."
240- )
241- return model
242237
243238 avg_backtests_metric = {
244239 model : sum (value .values ()) / len (value .values ())
You can’t perform that action at this time.
0 commit comments