Skip to main content

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

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)

Source distribution for OptGBM 0.10.0
File Size Uploaded
OptGBM-0.10.0.tar.gz 17.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for OptGBM 0.10.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.10.0 This release

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page