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.6.tar.gz (3.9 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.6-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lightgbmmodeloptimizer-0.0.6.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.13

File hashes

Hashes for lightgbmmodeloptimizer-0.0.6.tar.gz
Algorithm Hash digest
SHA256 f001741a2dc87acfc98a795f81d5543ee9d0a3558a96e63bcb0eb55894a81287
MD5 47b6d2fdf932814b1ef718580d0d6887
BLAKE2b-256 56c1399f0ef85bd1b7d02ed23e7af0c7b95ef9969390927d1e9894f4dab0c71c

See more details on using hashes here.

File details

Details for the file LightGBMModelOptimizer-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for LightGBMModelOptimizer-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b01065123c11b78785f69edae2453a6b7a30ece55e3b43b9fd297bfc62873050
MD5 fa4ff37218914541031e1c0c5ecac18f
BLAKE2b-256 4a9857792469e2a6d2694f402053c6e6947467155e961499076f664b6eab45db

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