Ich versuche, das Beispiel bei http://scikit-learn.org/stable/auto_examples/model_selection/plot_roc.html aber unter Verwendung von RandomForestClassifer zu reproduzieren.OnevsrestClassifier und zufällige Gesamtstruktur
Ich kann nicht sehen, wie man diesen Teil des Codes
# Learn to predict each class against the other
classifier = OneVsRestClassifier(svm.SVC(kernel='linear', probability=True,
random_state=random_state))
y_score = classifier.fit(X_train, y_train).decision_function(X_test)
Ich versuchte
# Learn to predict each class against the other
classifier = OneVsRestClassifier(RandomForestClassifier())
y_score = classifier.fit(X_train, y_train).decision_function(X_test)
aber ich
AttributeError: Base estimator doesn't have a decision_function attribute.
erhalten zu verwandeln Gibt es eine Abhilfe?
Warum die downvote? – eleanora