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

Potential Bug: train/test shape mismatch for multi-class classification #954

Closed
gkirgizov opened this issue Oct 21, 2022 · 0 comments · Fixed by #1022
Closed

Potential Bug: train/test shape mismatch for multi-class classification #954

gkirgizov opened this issue Oct 21, 2022 · 0 comments · Fixed by #1022
Labels
discuss invalid This doesn't seem right

Comments

@gkirgizov
Copy link
Collaborator

В ходе investigation #947 я обнаружил такую потенциальную проблему. Если в тестовую и тренировочную выборки случайно попадают разные количества target классов (что становится более вероятным при небольших выборках, большом количестве классов и их несбалансированности), то train_data.num_classes != test_data.num_classes, что ведет к ошибке несоответствия размерностей в модели при валидации.

Нужно как-то иначе считать data.num_classes, так, чтобы учитывать весь набор данных.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss invalid This doesn't seem right
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant