lightgbm.train bug(lightgbm==3.3.2.99)
- 主要言語
- Jupyter Notebook
- スター
- 551
- フォーク
- 143
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Mac中 lightgbm==3.3.2.99, lightgbm.train不再包含verbose_eval和early_stopping_rounds接口,改用callbacks接口,调用lgb模型时会报错
```
File ~/miniforge3/envs/lx/lib/python3.9/site-packages/autox/autox_competition/models/regressor_ts.py:231, in LgbRegressionTs.fit(self, train, test, used_features, target, time_col, ts_unit, Early_Stopping_Rounds, N_round, Verbose, log1p, custom_metric, weight_for_mae)
226 model = lgb.train(self.params_, trn_data, num_boost_round=self.N_round, valid_sets=[trn_data, val_data],
227 verbose_eval=self.Verbose,
228 early_stopping_rounds=self.Early_Stopping_Rounds,
229 feval=weighted_mae_lgb(weight=weight_for_mae))
230 else:
--> 231 model = lgb.train(self.params_, trn_data, num_boost_round=self.N_round, valid_sets=[trn_data, val_data],
...
233 early_stopping_rounds=self.Early_Stopping_Rounds)
234 val = model.predict(train.iloc[valid_idx][used_features])
235 if log1p:
TypeError: train() got an unexpected keyword argument 'verbose_eval'
```
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
The error occurs in autox/autox_competition/models/regressor_ts.py line 231. Look at the lightgbm.train call and replace verbose_eval and early_stopping_rounds with the callbacks parameter as per lightgbm 3.3.2.99. Check the lightgbm documentation for the new callback API, then update the two calls in the file. Run the model training to verify the fix.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- machine-learning, tooling
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 65/100