Hi all, Can I create ROC curve for one_class_SVM classifier? If I can, can you give pointer on how to do this? (or a link?)
for example now i have: LD: normal data for learning (100 item) ND: normal data for evaluation (500 item) AD: abnormal data for evaluation (500 item) one_class_SVM code for evaluation would be something like this (NU and GA is user input): clf = svm.OneClassSVM(nu=float(NU), kernel="rbf", gamma=float(GA)) clf.fit(LD) y_pred_train = clf.predict(LD) y_pred_test = clf.predict(ND) y_pred_outliers = clf.predict(AD) n_error_train = y_pred_train[y_pred_train == -1].size n_error_test = y_pred_test[y_pred_test == -1].size n_error_outliers = y_pred_outliers[y_pred_outliers == 1].size how to produce ROC curve from there? Thanks in advance ~Ady ------------------------------------------------------------------------------ _______________________________________________ Scikit-learn-general mailing list Scikit-learn-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/scikit-learn-general