Skip to content

Commit

Permalink
fix most_by_correct
Browse files Browse the repository at this point in the history
  • Loading branch information
jph00 committed Jan 27, 2018
1 parent 473691a commit e32c8b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion courses/dl1/lesson1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@
"\n",
"def most_by_correct(y, is_correct): \n",
" mult = -1 if (y==1)==is_correct else 1\n",
" return most_by_mask((preds == data.val_y)==is_correct & (data.val_y == y), mult)"
" return most_by_mask(((preds == data.val_y)==is_correct) & (data.val_y == y), mult)"
]
},
{
Expand Down

0 comments on commit e32c8b3

Please sign in to comment.