1

I am trying to learn text classification using SVM classifier, for this I am experimenting example code from sci-kit learn, but when I import following command

from scikits.learn import svm

I get the error as shown in the following figure.

enter image description here

FYI, I installed scikit-learn in Mac OS-X 10.8.5.I also can run following command without any error

import sklearn.svm
import sklearn.cluster
import sklearn

Any suggestion will be greatly appreciate. Thanks.

1 Answer 1

5

Just import from sklearn import svm. The documentation you are refering to is about an old version of the library with a different namespace. The up to date version of this tutorial is maintained at: http://scipy-lectures.github.io/packages/scikit-learn/index.html

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.