Metadata-Version: 2.4
Name: LightGBMModelOptimizer
Version: 0.0.7
Summary: Trained Lightgbm Model Optimizer. Reduce size and improve inference time of the trained lightgbm model
Author-email: Rajat Goyal <rajatgoyal376@gmail.com>
Maintainer-email: Paras Malik <paras.mal@media.net>
License: MIT
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown

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')


