![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
代码
fwj7
这个作者很懒,什么都没留下…
展开
-
python 矩阵旋转
逆时针旋转90°#逆时针旋转90°matrix = list(zip(*matrix))[::-1]#顺时针旋转90°matrix = list(zip(*(matrix[::-1])))原创 2020-07-30 10:11:03 · 294 阅读 · 0 评论 -
PR曲线代码
from sklearn.metrics import roc_auc_scoredef get_pr(oof,target): pos = target[target==1] threshold = np.sort(oof)[::-1] y = target[oof.argsort()[::-1]] y=y.reset_index(drop=True) ...原创 2019-06-05 16:02:23 · 3323 阅读 · 4 评论