在进行多分类任务时,我们通常需要输出每个类别的准确率、召回率、F1值、样本数量以及整体均值,在sklearn包中提供了classification_report
函数可以实现这一功能。
具体用法如下。
1 | from sklearn.metrics import classification_report |
输出结果为:
1 | precision recall f1-score support |
Do Better, For Better!
在进行多分类任务时,我们通常需要输出每个类别的准确率、召回率、F1值、样本数量以及整体均值,在sklearn包中提供了classification_report
函数可以实现这一功能。
具体用法如下。
1 | from sklearn.metrics import classification_report |
输出结果为:
1 | precision recall f1-score support |
微信支付
支付宝