mirror of
https://github.com/microsoft/autogen.git
synced 2026-04-20 03:02:16 -04:00
check n_iter == 1
This commit is contained in:
@@ -37,10 +37,11 @@ class TestTrainingLog(unittest.TestCase):
|
||||
if automl.best_estimator:
|
||||
estimator, config = automl.best_estimator, automl.best_config
|
||||
model0 = automl.best_model_for_estimator(estimator)
|
||||
print(model0.estimator)
|
||||
print(model0.params["n_estimators"], model0.estimator)
|
||||
|
||||
automl.time_budget = None
|
||||
model, _ = automl._state._train_with_config(estimator, config)
|
||||
print(model.estimator)
|
||||
# model0 and model are equivalent unless model0's n_estimator is out of search space range
|
||||
assert (
|
||||
str(model0.estimator) == str(model.estimator)
|
||||
|
||||
Reference in New Issue
Block a user