metrics.confusion_matrix(y_test,y_predicted_counts_gb, labels) code example
Example: Confusion matrix sklearn
from sklearn.metrics import confusion_matrix
# After a train/test split:
confusion_matrix(y_test, y_pred)
from sklearn.metrics import confusion_matrix
# After a train/test split:
confusion_matrix(y_test, y_pred)