I trained Random Forest Classifier in sklearn
to predict multi-class classification problem.
My dataset has four class labels. But my code create 2x2 confusion matrix
y_predict = rf.predict(X_test)
conf_mat = sklearn.metrics.confusion_matrix(y_test, y_predict)
print(conf_mat)
Output:
[[0, 0]
[394, 39]]
How can I get 4x4 confusion matrix to analyze TP, TN, FP, FN.