from yellowbrick.classifier import ConfusionMatrix cm = ConfusionMatrix(rf, classes=[0,1], size=(400,400),cm.fit(X_train, y_train)fontsize=15, cmap='GnBu') 
cm.score(X_test, y_test)
1
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

JamesJalaPayneo