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
Traceback (most recent call last):
File "./demos/classifier.py", line 296, in
infer(args, args.multi)
File "./demos/classifier.py", line 195, in infer
person = le.inverse_transform(maxI)
File "/usr/local/lib/python2.7/dist-packages/sklearn/preprocessing/label.py", line 273, in inverse_transform
y = column_or_1d(y, warn=True)
File "/usr/local/lib/python2.7/dist-packages/sklearn/utils/validation.py", line 797, in column_or_1d
raise ValueError("bad input shape {0}".format(shape))
ValueError: bad input shape ()
OS and hardware information.
Operating system: ubuntu 16.04
Torch version: 7
CPU architecture: i5
GPU type (if using): 1050ti cuda
when i use scikit-learn-0.20.1,it shows these error.then i use scikit-learn-0.19.0,it solved
The text was updated successfully, but these errors were encountered:
switch to 0.19.0, I got another error:
Traceback (most recent call last):
File "./demos/classifier.py", line 301, in
infer(args, args.multi)
File "./demos/classifier.py", line 198, in infer
predictions = clf.predict_proba(rep).ravel()
File "/Users/yixia/anaconda2/envs/python27/lib/python2.7/site-packages/sklearn/svm/base.py", line 590, in predict_proba
self._check_proba()
File "/Users/yixia/anaconda2/envs/python27/lib/python2.7/site-packages/sklearn/svm/base.py", line 559, in _check_proba
if self._impl not in ('c_svc', 'nu_svc'):
AttributeError: 'SVC' object has no attribute '_impl'
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Traceback (most recent call last):
File "./demos/classifier.py", line 296, in
infer(args, args.multi)
File "./demos/classifier.py", line 195, in infer
person = le.inverse_transform(maxI)
File "/usr/local/lib/python2.7/dist-packages/sklearn/preprocessing/label.py", line 273, in inverse_transform
y = column_or_1d(y, warn=True)
File "/usr/local/lib/python2.7/dist-packages/sklearn/utils/validation.py", line 797, in column_or_1d
raise ValueError("bad input shape {0}".format(shape))
ValueError: bad input shape ()
OS and hardware information.
when i use scikit-learn-0.20.1,it shows these error.then i use scikit-learn-0.19.0,it solved
The text was updated successfully, but these errors were encountered: