dmlc / dmlc/xgboost

XGBClassifier params eval_metric don't support multiple custom metrics

Open
#11,509 3 comments 0 reactions 0 assignees View on GitHub
feature-request
Dominant language
C++
Stars
28.8k
Forks
8.9k
Avg merge
1d 12h
Merged PRs (30d)
54

Description

![Image](https://github.com/user-attachments/assets/af9abd39-29a0-42cf-8b7c-aedad0a36ed8)
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.