ผมตามเรื่ องภาพ comment สำหรับ Tensorflowแต่ฉันกำลังมีปัญหาการตั้งค่าขึ้นเป็นเมตริกซ์ว่างความสับสนเพราะหัดเล่นไม่ได้ทำตามที่ X_test,y_test รูปแบบนั่นดั้งเดิมตัวอย่างการใช้งาน:
แฟนเก่า:
from sklearn.metrics import classification_report, confusion_matrix
y_proba = model.predict(X_test)
y_pred = np.argmax(y_proba,axis=1)
print('Confusion Matrix')
print(confusion_matrix(y_pred, y_test))
print('Classification Report')
print(classification_report(y_pred, y_test))
ยังไงฉันนัดความสับสนองแมททริกซ์จากที่ tensorflow ภาพ comment?