Created
October 30, 2020 00:20
-
-
Save aagnone3/36ef004b5e0bab9380483bcb3a38e444 to your computer and use it in GitHub Desktop.
sf_crime_16.py
This file contains 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
c = confusion_matrix(y_validation, y_pred > 0.5, normalize='true') | |
fig = ff.create_annotated_heatmap( | |
c, | |
x=['Not Target', 'Target'], | |
y=['Not Target', 'Target'], | |
colorscale="Greens" | |
) | |
fig.update_xaxes(side="top", title="Prediction") | |
fig.update_yaxes(title="Truth") | |
fig.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment