大家好,python里怎么求多元分类的F1 score?
谢谢!
1个回答
sklearn.metric.f1_score中有多种不同的多元分类的F1 score
from sklearn.metrics import f1_score# micro
f1_score(y_true, y_pred, average='micro')
# macro
f1_score(y_true, y_pred, average='macro')
# weighted
f1_score(y_true, y_pred, average='weighted')
				谢谢!
				- 
             FTD
           
				
          
          2017-10-18 09:53
			
    
  相关讨论
  随便看看