mirror of
https://github.com/microsoft/FLAML.git
synced 2026-02-08 17:59:17 +08:00
* lint * bump ver * bump ver * fixed circular import --------- Co-authored-by: Jirka Borovec <6035284+Borda@users.noreply.github.com>
16 lines
364 B
Python
16 lines
364 B
Python
from sklearn.datasets import fetch_openml
|
|
|
|
from flaml import AutoML
|
|
|
|
X_train, y_train = fetch_openml(name="credit-g", return_X_y=True, as_frame=False)
|
|
# not a real learning to rank dataaset
|
|
groups = [200] * 4 + [100] * 2 # group counts
|
|
automl = AutoML()
|
|
automl.fit(
|
|
X_train,
|
|
y_train,
|
|
groups=groups,
|
|
task="rank",
|
|
time_budget=1, # in seconds
|
|
)
|