Skip to content

Commit

Permalink
Correct accuracy calculation for the toy example
Browse files Browse the repository at this point in the history
  • Loading branch information
cgpotts committed May 29, 2020
1 parent b0321d4 commit 5dbb2e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion colors_overview.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1029,7 +1029,7 @@
}
],
"source": [
"toy_correct = sum(1 for x, p in zip(toy_word_seqs_test, toy_preds))\n",
"toy_correct = sum(1 for x, p in zip(toy_word_seqs_test, toy_preds) if x == p)\n",
"\n",
"toy_correct / len(toy_word_seqs_test)"
]
Expand Down

0 comments on commit 5dbb2e5

Please sign in to comment.