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

关于code部分(5-4.py)有点问题咨询 #25

Open
yelitao opened this issue Apr 30, 2020 · 0 comments
Open

关于code部分(5-4.py)有点问题咨询 #25

yelitao opened this issue Apr 30, 2020 · 0 comments

Comments

@yelitao
Copy link

yelitao commented Apr 30, 2020

Warning (from warnings module):
File "C:\Users\lenvov\AppData\Local\Programs\Python\Python38\lib\site-packages\sklearn\model_selection_split.py", line 665
warnings.warn(("The least populated class in y has only %d"
UserWarning: The least populated class in y has only 2 members, which is less than n_splits=10.
[1. 1. 1. 1. 1. 0.77777778

  1.     1.         0.88888889 0.88888889]
    

5-4.py运行结果如上面所示,10折交叉验证存在问题,与样本有关

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

1 participant