abhi9716 / handwritten-MNIST-digit-recognition

Real time MNIST digit recognition with OpenCV and Support Vector Machine (SVM) algorithm.
MIT License
39 stars 26 forks source link

sklearn version #1

Open Thadchayani opened 3 years ago

Thadchayani commented 3 years ago

Load the classifier

clf, pp = joblib.load("digits_cls1.pkl")

ModuleNotFoundError: No module named 'sklearn.svm.classes'

I get this error at this part. Specify the sklearn version used pls.

Mohit1-K commented 3 years ago

Serialization via joblib will only work if the versions of installed packages are exactly the same between the program saving the model and the program loading it. And the solution to remove this error is to use same version of sklearn while training and loading the model.