如题,用python画出了ROC曲线,但是想找到拐点,要怎么做?
ROC代码情况:
from sklearn.metrics import roc_curve,auc
y_score=final_model.predict_proba(X_test_standard[selected_features])
fpr,tpr,thresholds=roc_curve(y_test,y_score[:,1])
roc_auc=auc(fpr,tpr)
plt.subplots(figsize=(7,5))
plt.plot(fpr,tpr,color='darkorange',label='ROC curve (area = %0.2f)'%roc_auc)
plt.plot([0,1],[0,1],color='navy',linestyle='--')
plt.xlim([0.0,1.0])
plt.ylim([0.0,1.05])
plt.show()
用过KneeLocator求拐点,但感觉效果不是很好,请问还有别的方法吗,