赞
踩
from sklearn.metrics import accuracy_score
from sklearn.metrics import precision_score, recall_score
from sklearn.metrics import f1_score
targets = test_df['label']
outputs = test_df['result']
precision = precision_score(targets, outputs)
recall = recall_score(targets,outputs)
f1 = f1_score(targets,outputs)
print(precision)
print(recall)
print(f1)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。