A programming framework for agentic AI
None check
Chi Wang (MSR)da88aa77e3a6
diff --git a/flaml/automl.py b/flaml/automl.pyindex 098f66da4..6b43bf125 100644--- a/flaml/automl.py+++ b/flaml/automl.py@@ -1094,8 +1094,9 @@ class AutoML:self._state.best_loss))else:logger.info(f"no enough budget for learner {estimator}")- self.estimator_list.remove(estimator)- self._estimator_index -= 1+ if self._estimator_index is not None:+ self.estimator_list.remove(estimator)+ self._estimator_index -= 1if self._retrain_full and best_config_sig and not better and (self._search_states[self._best_estimator].sample_size ==self._state.data_size) and (est_retrain_time <=