digit-recognition icon indicating copy to clipboard operation
digit-recognition copied to clipboard

Module Error how to deal it ?

Open Cccccc2018 opened this issue 6 years ago • 1 comments

When I try to test the classifier, run the performRecognition.py script, I faced this problem, and I have no idea how to deal with that. I tried to run it in python 2 and python 3, it all has problems, hope someone can help me, thank you!

pi@raspberrypi:~/digit-recognition $ python performRecognition.py -c digits_cls.pkl -i photo_1.jpg Traceback (most recent call last): File "performRecognition.py", line 51, in nbr = clf.predict(roi_hog_fd) File "/usr/lib/python2.7/dist-packages/sklearn/linear_model/base.py", line 228, in predict return self.classes_[indices] File "/usr/lib/python2.7/dist-packages/sklearn/svm/base.py", line 709, in classes_ return self.enc.classes AttributeError: 'LinearSVC' object has no attribute '_enc'

Cccccc2018 avatar May 25 '18 08:05 Cccccc2018

@Cccccc2018 I encounter the same issue. Have you fixed it?

moFang222 avatar Apr 01 '19 04:04 moFang222