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.8.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.8-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lightgbmmodeloptimizer-0.0.8.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.8.tar.gz
Algorithm Hash digest
SHA256 5c32406b135cda9af79deaaad1151303fbabb11fbe7f7e889ae9d3dc8e1ae3b9
MD5 1b8d2274614ec034ae20bd06fde6f6ea
BLAKE2b-256 b8c4ee0aad712f419d3df641e3a4906380de8261c925833a2bba5eead277e30e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lightgbmmodeloptimizer-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 753fba7de58dffbdad4390385578f8532c66eb0e2132a8a02d9cc24357734f9e
MD5 30ef810e962f944a30040bc5df8bfa87
BLAKE2b-256 48d522cfa6804db0e3eb6e8f0147241c680733987daffbc0090f0ef338f7d9a8

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