Skip to content

while using trainer to train mnist model, 'ValueError: Found input variables with inconsistent numbers of samples: [10000, 8750]' #38024

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

Closed
HaoyaWHL opened this issue May 8, 2025 · 1 comment
Labels

Comments

@HaoyaWHL
Copy link

HaoyaWHL commented May 8, 2025

It was the problem with the data processing during the training process that led to the inconsistent shapes.

@HaoyaWHL HaoyaWHL added the bug label May 8, 2025
@SunMarc
Copy link
Member

SunMarc commented May 13, 2025

hey ! in the traceback, it shows that y-pred and y-true are not the same size. You should check what you get from accuracy_score

@HaoyaWHL HaoyaWHL closed this as not planned Won't fix, can't repro, duplicate, stale May 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants