Logo
Explore Help
Register Sign In
yujunjun/autogen
1
0
Fork 0
You've already forked autogen
mirror of https://github.com/microsoft/autogen.git synced 2025-08-13 03:01:30 +00:00
Code Issues Packages Projects Releases Wiki Activity
autogen/test/ray/distribute_automl.py

18 lines
434 B
Python
Raw Normal View History

fix a bug when using ray & update ray on aml (#455) * fix a bug when using ray & update ray on aml When using with_parameters(), the config argument must be the first argument in the trainable function. * make training function runnable standalone
2022-02-11 20:14:10 -08:00
from ray_on_aml.core import Ray_On_AML
Deploy a new doc website (#338) A new documentation website. And: * add actions for doc * update docstr * installation instructions for doc dev * unify README and Getting Started * rename notebook * doc about best_model_for_estimator #340 * docstr for keep_search_state #340 * DNN Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu> Co-authored-by: Z.sk <shaokunzhang@psu.edu>
2021-12-16 17:11:33 -08:00
from flaml import AutoML
def _test_ray_classification():
from sklearn.datasets import make_classification
X, y = make_classification(1000, 10)
automl = AutoML()
automl.fit(X, y, time_budget=10, task="classification", n_concurrent_trials=2)
if __name__ == "__main__":
fix a bug when using ray & update ray on aml (#455) * fix a bug when using ray & update ray on aml When using with_parameters(), the config argument must be the first argument in the trainable function. * make training function runnable standalone
2022-02-11 20:14:10 -08:00
ray_on_aml = Ray_On_AML()
ray = ray_on_aml.getRay()
if ray:
_test_ray_classification()
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.5 Page: 2205ms Template: 86ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API