📜  from sklearn.metrics import chaos_matrix pred = model.predict(X_test) pred = np.argmax(pred,axis = 1) y_true = np.argmax(y_test,axis = 1) - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:20.175000             🧑  作者: Mango

代码示例1
from sklearn.metrics import confusion_matrix
pred = model.predict(X_test)
pred = np.argmax(pred,axis = 1) 
y_true = np.argmax(y_test,axis = 1)