mirror of
https://github.com/microsoft/autogen.git
synced 2026-02-16 18:45:19 -05:00
update
This commit is contained in:
@@ -24,7 +24,10 @@ def test_lexiflow():
|
||||
"mem_thres": 128 * (1024**3),
|
||||
}
|
||||
automl.fit(X_train=X_train, y_train=y_train, X_val=X_test, y_val=y_test, **settings)
|
||||
|
||||
|
||||
print(automl.predict(X_train))
|
||||
print(automl.model)
|
||||
print(automl.config_history)
|
||||
print(automl.best_iteration)
|
||||
print(automl.best_estimator)
|
||||
if __name__ == "__main__":
|
||||
test_lexiflow()
|
||||
|
||||
@@ -109,15 +109,35 @@ def test_lexiflow():
|
||||
"n_epoch": 1,
|
||||
}
|
||||
|
||||
tune.run(
|
||||
# lexico tune
|
||||
analysis = tune.run(
|
||||
evaluate_function,
|
||||
num_samples=-1,
|
||||
time_budget_s=100,
|
||||
time_budget_s=50,
|
||||
config=search_space,
|
||||
use_ray=False,
|
||||
lexico_objectives=lexico_objectives,
|
||||
low_cost_partial_config=low_cost_partial_config,
|
||||
)
|
||||
print(analysis.best_trial)
|
||||
print(analysis.best_config)
|
||||
print(analysis.best_result)
|
||||
|
||||
# Non lexico tune
|
||||
analysis = tune.run(
|
||||
evaluate_function,
|
||||
metric = "error_rate",
|
||||
mode = "min",
|
||||
num_samples=-1,
|
||||
time_budget_s=50,
|
||||
config=search_space,
|
||||
use_ray=False,
|
||||
lexico_objectives=None,
|
||||
low_cost_partial_config=low_cost_partial_config,
|
||||
)
|
||||
print(analysis.best_trial)
|
||||
print(analysis.best_config)
|
||||
print(analysis.best_result)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user