Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File "recognize_video.py", line 87, in <module> #3

Open
Watcharin04 opened this issue Aug 25, 2020 · 1 comment
Open

File "recognize_video.py", line 87, in <module> #3

Watcharin04 opened this issue Aug 25, 2020 · 1 comment

Comments

@Watcharin04
Copy link

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'

@nahomneg
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants