Optuna + LightGBM \= OptGBM
Project description
OptGBM
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.
bagging_fractionbagging_freqfeature_fractrionlambda_l1lambda_l2max_depthmin_data_in_leafnum_leaves
Installation
pip install optgbm
Testing
tox
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
OptGBM-0.10.0.tar.gz
(17.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
OptGBM-0.10.0-py3-none-any.whl
(13.5 kB
view details)
File details
Details for the file OptGBM-0.10.0.tar.gz.
File metadata
- Download URL: OptGBM-0.10.0.tar.gz
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.2.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
edbd400fb257d5b86254dec475f40976a00ae149a831b13a1dd31d1e96222b64
|
|
| MD5 |
b8df0cedeacfc7f6877fd0465566ad85
|
|
| BLAKE2b-256 |
ea420e21b6cd2e2ef536977e13e8185cbc7094c2e5cc2a74acc811b2760fd5ec
|
File details
Details for the file OptGBM-0.10.0-py3-none-any.whl.
File metadata
- Download URL: OptGBM-0.10.0-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.2.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3778c8ef8f1cb7c7108d63eeaa638b210060efa59317ca0153d6a7c8967643f7
|
|
| MD5 |
8da3754c89117b98eab082266e212fcd
|
|
| BLAKE2b-256 |
b327d597da2487b2b9df7572184f69f81c1d0d4f73046a3426773539fb7876f6
|