![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
机器学习
未空blog
沙弥虽小,终成法王
展开
-
ROC-AUC PR-AUC F1
找到一篇论文代码浮现的时候人家用matplotlib画图。。。但是这个图片虽然美观但是到底是没有那一串串数字吸引人,比如这样的然后我就把它改了,记录一下from sklearn.metrics import precision_recall_curvefrom sklearn.metrics import f1_scorefrom sklearn.metrics import precision_recall_curvefrom sklearn.metrics import roc_auc_原创 2022-03-08 20:49:59 · 926 阅读 · 0 评论 -
sklearn KFold
from sklearn.model_selection import KFoldimport numpy as npX = np.array([[1, 2], [3, 4], [5, 6], [7, 8], [9, 10],[11, 12]])y = np.array([1, 2, 3, 4, 5, 6])kf = KFold(n_splits=3)print( kf.get_n_splits(X))kfs = kf.split(X)for train_index, test_ind...原创 2022-03-07 09:02:16 · 515 阅读 · 0 评论