from yellowbrick.classifier import ConfusionMatrix cm = ConfusionMatrix(rf, classes=[0,1], size=(400,400),, y_train)fontsize=15, cmap='GnBu') 
cm.score(X_test, y_test)
In the positive class, we have 1419 correct predictions and 213 wrong predictions. 1We can also display the percentages instead of numbers by setting the percent parameter as True. 1

Requests left for this source (Medium): 5