Skip to main content

Optuna + LightGBM \= OptGBM

Project description

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.

  • bagging_fraction
  • bagging_freq
  • feature_fractrion
  • lambda_l1
  • lambda_l2
  • max_depth
  • min_data_in_leaf
  • num_leaves

Installation

pip install optgbm

Testing

tox

Project details


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

OptGBM-0.10.0-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

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

Hashes for OptGBM-0.10.0.tar.gz
Algorithm Hash digest
SHA256 edbd400fb257d5b86254dec475f40976a00ae149a831b13a1dd31d1e96222b64
MD5 b8df0cedeacfc7f6877fd0465566ad85
BLAKE2b-256 ea420e21b6cd2e2ef536977e13e8185cbc7094c2e5cc2a74acc811b2760fd5ec

See more details on using hashes here.

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

Hashes for OptGBM-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3778c8ef8f1cb7c7108d63eeaa638b210060efa59317ca0153d6a7c8967643f7
MD5 8da3754c89117b98eab082266e212fcd
BLAKE2b-256 b327d597da2487b2b9df7572184f69f81c1d0d4f73046a3426773539fb7876f6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page