赞
踩
混淆矩阵见:我的博客
import numpy as np
from sklearn.metrics import accuracy_score
y_pred = [0, 2, 1, 3]
y_true = [0, 1, 2, 3]
print(accuracy_score(y_true, y_pred))
print(accuracy_score(y_true, y_pred, normalize=False))
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。