Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
sf_crime_16.py
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