Skip to content

A programming framework for agentic AI

Regression forecast debug (#391)

Kevin Chen99667dad5f49
diff --git a/flaml/automl.py b/flaml/automl.py
index 7c2d05edd..db5f9d1c1 100644
--- a/flaml/automl.py
+++ b/flaml/automl.py
@@ -2146,7 +2146,8 @@ class AutoML(BaseEstimator):
]
if TS_FORECAST == self._state.task:
# catboost is removed because it has a `name` parameter, making it incompatible with hcrystalball
- estimator_list.remove("catboost")
+ if "catboost" in estimator_list:
+ estimator_list.remove("catboost")
try:
import prophet