Skip to content

Instantly share code, notes, and snippets.

@ronzillia
Last active May 13, 2018 19:17
Show Gist options
  • Save ronzillia/609e1a39c31c39cc5fbfd2152f5f1788 to your computer and use it in GitHub Desktop.
Save ronzillia/609e1a39c31c39cc5fbfd2152f5f1788 to your computer and use it in GitHub Desktop.
# after the whole epoch
tp=conf_mtx[1][1]
fp=conf_mtx[0][1]
tn=conf_mtx[0][0]
fn=conf_mtx[1][0]
precision=np.truediv(tp,tp+fp)
recall=np.true_divide(tp,tp +fn)
tn_rate=np.true_divide(tn,tn+fp)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment