| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
- Replace deprecated LightGBM parameters (early_stopping_rounds, verbose_eval, evals_result) in documentation with callbacks - Add helper _parse_callbacks to safely construct callbacks list - Handle early_stopping_rounds=None safely without raising TypeError - Support custom callbacks passed via kwargs in LGBModel and HFLGBModel - Support kwargs in finetune() across LGBModel and HFLGBModel - Add unit tests for LightGBM callback and model compatibility
| Back | FazBrowse Home | New Git URL |
Description
This PR modernizes LightGBM API usage across Qlib and updates related documentation and models to eliminate deprecation warnings from legacy arguments:
Motivation and Context
Resolves #904
In recent versions of LightGBM (v3.3+ and v4.x), passing parameters like early_stopping_rounds, verbose_eval, and evals_result directly to lgb.train emits UserWarning deprecation messages and can cause runtime exceptions when early stopping is disabled (None). This PR brings Qlib's LightGBM integration in line with modern standards while maintaining full backward compatibility.
How Has This Been Tested?
Ran test suites and style checks:
Screenshots of Test Results (if appropriate):