摘要: TP – True Positive FN – False Negative TN – True Negative FP – False Positive 1.Accuracy准确率 准确率 =(TP+TN)/(TP+TN+FP+FN) from sklearn.metrics import acc 阅读全文
posted @ 2021-09-07 21:38 吴莫愁258 阅读(299) 评论(0) 推荐(0) 编辑
摘要: def setup_seed(seed): torch.manual_seed(seed) torch.cuda.manual_seed_all(seed) np.random.seed(seed) random.seed(seed) torch.backends.cudnn.determinist 阅读全文
posted @ 2021-09-07 21:26 吴莫愁258 阅读(184) 评论(0) 推荐(0) 编辑