XGBClassifier params eval_metric don't support multiple custom metrics
- Dominant language
- C++
- Stars
- 28.8k
- Forks
- 8.9k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 54
Description

eval_metric=f1_score is okay,
eval_metric='auc' is okay,
eval_metric=['rmse','auc'] is ok,
eval_metric=[f1_score,'auc'] don't work.
sklearn.metrics or custom metrics function can't use with bulit-in functions, nor can use multiple like eval_metric=[f1_score,roc_auc_score].
but lightgbm can do it.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the XGBClassifier entry point and its eval_metric handling. Reproduce the cases described with sklearn.metrics or custom metric functions, including a custom function mixed with 'auc' and multiple custom metrics; done means these combinations work consistently alongside the existing single and built-in metric cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, scikit-learn
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100