SVM
一、metrics
accuracy_score(cancer_target_test,cancer_target_pred)
precision_score(cancer_target_test,cancer_target_pred)
recall_score(cancer_target_test,cancer_target_pred)
f1_score(cancer_target_test,cancer_target_pred)
cohen_kappa_score(cancer_target_test,cancer_target_pred) #还没看过具体是什么
ROC:
sklearn.metrics.roc_auc_score(y_true, y_score, *, average='macro', sample_weight=None, max_fpr=None, multi_class='raise', labels=None)[source])
二、predict probability
predict_proba
predict
decision_function: 需要设定probability=True
(clf=svm.SVC(kernel=kernel_model,decision_function_shape="ovr",probability=True) #c=1.5