Y-oHr-N / OptGBM

Optuna + LightGBM = OptGBM
MIT License
34 stars 7 forks source link
automl machine-learning

OptGBM

Python package codecov PyPI PyPI - License Binder

OptGBM (= Optuna + LightGBM) provides a scikit-learn compatible estimator that tunes hyperparameters in LightGBM with Optuna.

Examples

import optgbm as lgb
from sklearn.datasets import load_boston

reg = lgb.LGBMRegressor(random_state=0)
X, y = load_boston(return_X_y=True)

reg.fit(X, y)

y_pred = reg.predict(X, y)

By default, the following hyperparameters will be searched.

Installation

pip install optgbm

Testing

tox