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
Metadata
Release files for OptGBM 0.10.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| OptGBM-0.10.0.tar.gz | 17.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| OptGBM-0.10.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.3 kB
Release files / OptGBM-0.10.0.tar.gz
| Download URL | OptGBM-0.10.0.tar.gz |
|---|---|
| Size | 17.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
edbd400fb257d5b86254dec475f40976a00ae149a831b13a1dd31d1e96222b64
|
|
BLAKE2b-256 checksum How to use checksums |
ea420e21b6cd2e2ef536977e13e8185cbc7094c2e5cc2a74acc811b2760fd5ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / OptGBM-0.10.0-py3-none-any.whl
| Download URL | OptGBM-0.10.0-py3-none-any.whl |
|---|---|
| Size | 13.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3778c8ef8f1cb7c7108d63eeaa638b210060efa59317ca0153d6a7c8967643f7
|
|
BLAKE2b-256 checksum How to use checksums |
b327d597da2487b2b9df7572184f69f81c1d0d4f73046a3426773539fb7876f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|