You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "recognize_video.py", line 87, in
preds = recognizer.predict_proba(vec)[0]
File "/home/pi/.virtualenvs/cv/lib/python3.7/site-packages/sklearn/svm/_base.py", line 657, in predict_proba
self._check_proba()
File "/home/pi/.virtualenvs/cv/lib/python3.7/site-packages/sklearn/svm/_base.py", line 623, in _check_proba
if not self.probability:
AttributeError: 'SVC' object has no attribute 'probability'
The text was updated successfully, but these errors were encountered:
Hello,
Hope you have solved your problem already.
If not, make sure you are using the exact same version of sklearn that was used for this project.
You can use the following command...
pip3 install --upgrade scikit-learn==0.19.2
File "recognize_video.py", line 87, in
preds = recognizer.predict_proba(vec)[0]
File "/home/pi/.virtualenvs/cv/lib/python3.7/site-packages/sklearn/svm/_base.py", line 657, in predict_proba
self._check_proba()
File "/home/pi/.virtualenvs/cv/lib/python3.7/site-packages/sklearn/svm/_base.py", line 623, in _check_proba
if not self.probability:
AttributeError: 'SVC' object has no attribute 'probability'
The text was updated successfully, but these errors were encountered: