FLAML icon indicating copy to clipboard operation
FLAML copied to clipboard

use_label_encoder warning with xgboost

Open minghao51 opened this issue 2 years ago • 3 comments

Currently, when using using flaml with xgboost, there is always a warning about

UserWarning: `use_label_encoder` is deprecated in 1.7.0.

As per discussion on xgboost forum use_label_encoder options should be removed it seems?

A quick search on the repo's source code yield: image

minghao51 avatar Jul 11 '23 14:07 minghao51

The issue can be solved by commenting this line: https://github.com/microsoft/FLAML/blob/784c4c4f86e8b0c6abeb411f06b3a1b78a74980b/flaml/automl/model.py#L1513 Would you like to make a PR?

sonichi avatar Jul 11 '23 15:07 sonichi

Sure, I will draft one

minghao51 avatar Jul 12 '23 11:07 minghao51

Sure, I will draft one

https://github.com/microsoft/FLAML/pull/1122

minghao51 avatar Jul 12 '23 12:07 minghao51