ModuleNotFoundError: No module named ‘sklearn’

I want to import sklearn but there is no module apparently: I am using Anaconda and Python 3.6.1; I have checked everywhere but still can’t find answers. When I use the command: conda install scikit-learn should this not just work?Where does anaconda install the package? I was checking the frameworks in my python library and there was nothing … Read more

ModuleNotFoundError: No module named ‘sklearn’

I want to import sklearn but there is no module apparently: I am using Anaconda and Python 3.6.1; I have checked everywhere but still can’t find answers. When I use the command: conda install scikit-learn should this not just work?Where does anaconda install the package? I was checking the frameworks in my python library and there was nothing … Read more

sklearn error ValueError: Input contains NaN, infinity or a value too large for dtype(‘float64’)

This might happen inside scikit, and it depends on what you’re doing. I recommend reading the documentation for the functions you’re using. You might be using one which depends e.g. on your matrix being positive definite and not fulfilling that criteria. EDIT: How could I miss that: is obviously wrong. Right would be: and You … Read more