Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request - please support weight per label per sample #10889

Open
tlkhm opened this issue Oct 14, 2024 · 1 comment
Open

Feature request - please support weight per label per sample #10889

tlkhm opened this issue Oct 14, 2024 · 1 comment

Comments

@tlkhm
Copy link

tlkhm commented Oct 14, 2024

Currently DMatrix weight argument is per sample, the shape is [n_samples].

Please allow different weights to be specified for each sample and each label, the weight shape would be [n_samples,n_labels].

This would be useful in some multi-output binary classification problems where label importance are different for each sample.

@milannnnn
Copy link

This feature would also be useful for multi-output regression as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants