I am using Python 3.6,sklearn.svm.OneClassSVM to practice OSVM and I want to
calculate ROC, AUC.
I have used decision_function() to calculate ROC and AUC ,the code is below.
I want to evaluate the value that I calculate by decision_function.
Can I only use predicted label and real label to obtain ROC, AUC value?
y_score = oneclass.decision_function(testing_data)
roc_auc = metrics.roc_auc_score(Y_test, y_score)