tuwien-musicir / rp_extract

Rhythm Pattern music feature extractor by IFS @ TU-Vienna
GNU General Public License v3.0
110 stars 27 forks source link

Issue while running classifier #22

Closed GavinDmello closed 7 years ago

GavinDmello commented 7 years ago
Traceback (most recent call last):
  File "rp_classify.py", line 322, in <module>
    predictions = classify(model, features_to_classify, labelencoder)
  File "rp_classify.py", line 62, in classify
    pred = model.predict(features)
  File "/Library/Python/2.7/site-packages/sklearn/multiclass.py", line 305, in predict
    return self.classes_[np.array(argmaxima.T)]
AttributeError: 'OneVsRestClassifier' object has no attribute 'classes_'
audiofeature commented 7 years ago

What version of scikit-learn are you using?

GavinDmello commented 7 years ago

0.18.1

audiofeature commented 7 years ago

as per requirements.txt rp_extract was written for scikit-learn==0.17

Please feel free to research on scikit-learn docs how the classes are retrieved in 0.18 and suggest it here or as a pull request

GavinDmello commented 7 years ago

@audiofeature Thanks dude.