Skip to main content

Trained Lightgbm Model Optimizer. Reduce size and improve inference time of the trained lightgbm model

Project description

LightGBMModelOptimizer Python-package

Usage


LightGBMModelOptimizer optimized the trained lightgbm model. It reduces size of model & improves the inference time of the model.

To Optimize the trained model without dumping. It will create a new model object and return it.

optimizer = Optimizer()
model = optimizer.optimize_booster(model)

To Optimize the model dump. It will replace the same file with the optimized model file.

optimizer = Optimizer()
_ = optimizer.optimize_model_file('model.txt')

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

lightgbmmodeloptimizer-0.0.7.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

lightgbmmodeloptimizer-0.0.7-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file lightgbmmodeloptimizer-0.0.7.tar.gz.

File metadata

  • Download URL: lightgbmmodeloptimizer-0.0.7.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.23

File hashes

Hashes for lightgbmmodeloptimizer-0.0.7.tar.gz
Algorithm Hash digest
SHA256 4f84ea3e93807eff2ba166c4c3600d03b5bdfa8c2ee84ce44c61a14e33424c05
MD5 3cd1298a7852ed4807eba718af7951c8
BLAKE2b-256 2c0011e0043f6da2729dd6c1c39d057a42ce68be4070d85d2329a37b30f660d5

See more details on using hashes here.

File details

Details for the file lightgbmmodeloptimizer-0.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for lightgbmmodeloptimizer-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 8727a029043613cbe118dd1b29560779cba6c99101d197f6ad08388798a58344
MD5 98117987ba42c4e042959b6693424d8c
BLAKE2b-256 4b7c83314c9988f16a14483b6c5cc51a2d3dd5e890963ccb50e8abf85fd0ee63

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