jasmcaus / opencv-course

Learn OpenCV in 4 Hours - Code used in my Python and OpenCV course on freeCodeCamp.
https://youtu.be/oXlwWbU8l2o
MIT License
1.11k stars 955 forks source link

module 'sklearn' has no attribute 'model_selection' #11

Closed singhamritanshu closed 3 years ago

singhamritanshu commented 3 years ago

In the simpsons project when we are splitting the test and train data you have used "sklearn.model_selection" I was getting the error "module 'sklearn' has no attribute 'model_selection'", the fix is very simple just add "import sklearn.model_selection".

jasmcaus commented 3 years ago

Works fine on my end. This was fixed recently: https://github.com/jasmcaus/opencv-course/blob/fb7e7d244c0e03f55bc1115857bfef8ee88b415e/Section%20%234%20-%20Capstone/simpsons.py#L15

singhamritanshu commented 3 years ago

Hi, it's not woking in the jupyter notebook Capstone/simpsons.ipynb.

jasmcaus commented 3 years ago

Thanks for pointing this out. I've fixed this in the notebook.