Skip to content

Commit

Permalink
fix eer in hw3
Browse files Browse the repository at this point in the history
  • Loading branch information
kventinel committed May 10, 2024
1 parent 6b6a54f commit 7745afa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion week_03_kws_bio/homework.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
"outputs": [],
"source": [
"def best_eer(data):\n",
" full = sorted(data)\n",
" full = sorted(data, key=lambda x: (x[0], -x[1]))\n",
" pos = len([item for item in full if item[1] == 1])\n",
" neg = len(full) - pos\n",
" cur_pos = pos\n",
Expand Down

0 comments on commit 7745afa

Please sign in to comment.