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

bug #45

Open
wxl112 opened this issue Sep 19, 2020 · 1 comment
Open

bug #45

wxl112 opened this issue Sep 19, 2020 · 1 comment

Comments

@wxl112
Copy link

wxl112 commented Sep 19, 2020

when the machine learning task is regression,it will comes up following questions!
ValueError: The least populated class in y has only 1 member, which is too few. The minimum number of groups for any class cannot be less than 2.

@HiCiChlid
Copy link

I think 306 lines "train_features, valid_features, train_labels, valid_labels = train_test_split(features, labels, test_size = 0.15, stratify=labels)" is the final reason of the problem. stratify is for classification not for regression.

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

No branches or pull requests

2 participants