Skip to content

A programming framework for agentic AI

Added an info reminding user that if no time_budget and no max_iter is specified, then effectively zero-shot AutoML is used (#850)

Jing Dongb2d51b648c7a
diff --git a/flaml/automl/automl.py b/flaml/automl/automl.py
index 078ce67a2..db092b524 100644
--- a/flaml/automl/automl.py
+++ b/flaml/automl/automl.py
@@ -2566,6 +2566,7 @@ class AutoML(BaseEstimator):
self._use_ray = use_ray or n_concurrent_trials > 1
# use the following condition if we have an estimation of average_trial_time and average_trial_overhead
# self._use_ray = use_ray or n_concurrent_trials > ( average_trail_time + average_trial_overhead) / (average_trial_time)
+
if self._use_ray is not False:
import ray
@@ -2816,6 +2817,7 @@ class AutoML(BaseEstimator):
logger.warning(
"No search budget is provided via time_budget or max_iter."
" Training only one model per estimator."
+ " Zero-shot AutoML is used for certain tasks and estimators."
" To tune hyperparameters for each estimator,"
" please provide budget either via time_budget or max_iter."
)