microsoft / microsoft/qlib

Upgrading lightGBM API usage

Open
#904 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug good first issue
Dominant language
Python
Stars
48.7k
Forks
7.7k
PR merge metrics
No merged PRs in 30d

Description

🐛 Bug Description

The current usage of lightGBM API is deprecated.
image

  /home/xiaoyang/miniconda3/envs/kaggle/lib/python3.7/site-packages/lightgbm/engine.py:177: UserWarning: Found `n_estimators` in params. Will use it instead of argument
    _log_warning(f"Found `{alias}` in params. Will use it instead of argument")
  /home/xiaoyang/miniconda3/envs/kaggle/lib/python3.7/site-packages/lightgbm/engine.py:181: UserWarning: 'early_stopping_rounds' argument is deprecated and will be removed in a future release of LightGBM. Pass 'early_stopping()'
  callback via 'callbacks' argument instead.                                                                                                                                                                                             _log_warning("'early_stopping_rounds' argument is deprecated and will be removed in a future release of LightGBM. "
  /home/xiaoyang/miniconda3/envs/kaggle/lib/python3.7/site-packages/lightgbm/engine.py:239: UserWarning: 'verbose_eval' argument is deprecated and will be removed in a future release of LightGBM. Pass 'log_evaluation()' callback
  via 'callbacks' argument instead.
    _log_warning("'verbose_eval' argument is deprecated and will be removed in a future release of LightGBM. "
  /home/xiaoyang/miniconda3/envs/kaggle/lib/python3.7/site-packages/lightgbm/engine.py:260: UserWarning: 'evals_result' argument is deprecated and will be removed in a future release of LightGBM. Pass 'record_evaluation()' callba
  ck via 'callbacks' argument instead.
    _log_warning("'evals_result' argument is deprecated and will be removed in a future release of LightGBM. "

To Reproduce

Steps to reproduce the behavior:

  1. train Qlib models based on lightGBM

Expected Behavior

Screenshot

Environment

Note: User could run cd scripts && python collect_info.py all under project directory to get system information
and paste them here directly.

  • Qlib version:
  • Python version:
  • OS (Windows, Linux, MacOS):
  • Commit number (optional, please provide it if you are using the dev version):

Additional Notes

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Qlib model-training call sites that invoke LightGBM, then reproduce the warnings by following the issue's training steps. Check the available LightGBM usage and confirm that training no longer emits the listed deprecation warnings; scripts/collect_info.py all can provide environment details if needed.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.