Created
November 17, 2017 10:16
-
-
Save drorhilman/0da6e5cbdd3a8f0ea627036dc3f49c20 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sklearn.metrics import confusion_matrix | |
import seaborn as sns | |
forest.fit(x,y) | |
predict = forest.predict(x) | |
cm = pd.DataFrame(confusion_matrix(y, predict), columns=forest.classes_, index=forest.classes_) | |
sns.heatmap(cm) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment