I get this error when trying to run getClass.py with the args -t dataset/test --visualize.
I think this is an issue with LinearSVC and not my end, but I wanted to make sure.
predictions = [classes_names[i] for i in clf.predict(test_features)] File "C:\Python27\lib\site-packages\sklearn\linear_model\base.py", line 228, in predict return self._classes_[indices] AttributeError: 'LinearSVC' object has no attribute 'classes_'
I get this error when trying to run
getClass.py
with the args -t dataset/test --visualize. I think this is an issue with LinearSVC and not my end, but I wanted to make sure.predictions = [classes_names[i] for i in clf.predict(test_features)] File "C:\Python27\lib\site-packages\sklearn\linear_model\base.py", line 228, in predict return self._classes_[indices] AttributeError: 'LinearSVC' object has no attribute 'classes_'
Anyone having this issue?