A programming framework for agentic AI
bug fix
Chi Wang (MSR)14d59effbe62
diff --git a/docs/index.rst b/docs/index.rstindex e47e9fc5f..f56acbfb5 100644--- a/docs/index.rst+++ b/docs/index.rst@@ -24,8 +24,9 @@ AutoMLTune-------.. automodule:: flaml.tune- :members:+.. autofunction:: flaml.tune.run++.. autofunction:: flaml.tune.report.. autoclass:: flaml.BlendSearch:members:diff --git a/flaml/ml.py b/flaml/ml.pyindex 90093cf2b..76f053355 100644--- a/flaml/ml.py+++ b/flaml/ml.py@@ -258,7 +258,7 @@ def train_estimator(X_train, y_train, config_dic, task,n_jobs=n_jobs)if X_train is not None:train_time = train_model(estimator, X_train, y_train, budget,- **fit_kwargs)+ fit_kwargs)else:estimator = estimator.estimator_class(**estimator.params)train_time = time.time() - start_timediff --git a/flaml/searcher/blendsearch.py b/flaml/searcher/blendsearch.pyindex 97d12bd7b..adca20c56 100644--- a/flaml/searcher/blendsearch.py+++ b/flaml/searcher/blendsearch.py@@ -396,15 +396,15 @@ class BlendSearch(Searcher):class CFO(BlendSearch):''' class for CFO algorithm- Number of threads is 1 or 2. Thread 0 is a vacuous thread.'''__name__ = 'CFO'def suggest(self, trial_id: str) -> Optional[Dict]:+ # Number of threads is 1 or 2. Thread 0 is a vacuous threadassert len(self._search_thread_pool)<3, len(self._search_thread_pool)if len(self._search_thread_pool) < 2:- # When a local converges, the number of threads is 1.+ # When a local converges, the number of threads is 1# Need to restartself._init_used = Falsereturn super().suggest(trial_id)