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

Metric evaluation error: y_true and y_pred contain different number of classes #1016

Closed
nicl-nno opened this issue Dec 28, 2022 · 3 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@nicl-nno
Copy link
Collaborator

The problem "Metric evaluation error: y_true and y_pred contain different number of classes 45, 85" raises for click_prediction_small dataset

Looks like class stratification is failing.

@nicl-nno nicl-nno added the bug Something isn't working label Dec 28, 2022
@curiousHG
Copy link

Can you expand on the issue? Or maybe narrow down to which file or code the problem is?

@nicl-nno
Copy link
Collaborator Author

@curiousHG

This problem occurs for classification tasks when the number of classes is very large and cross-validation fails to preserve the examples for all classes.

The connected problems are for <2 classes in sample and new classes in predict sample.

@gkirgizov gkirgizov marked this as a duplicate of #954 Jan 25, 2023
@gkirgizov
Copy link
Collaborator

Duplicate of #954

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants