Skip to content

Commit

Permalink
Fixed bug in email-averaged time calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
fexfl committed Jan 5, 2025
1 parent f2b1eb6 commit b408625
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions notebook/batching_performance.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -156,26 +156,24 @@
"metadata": {},
"outputs": [],
"source": [
"# batching_sizes = [-1, 1, 2, 3, 4, 6, 8, 10]\n",
"batching_sizes = [1, 10]\n",
"n_samples = 3\n",
"batching_sizes = [-1, 1, 2, 3, 4, 6, 8, 10]\n",
"# batching_sizes = [1, 10]\n",
"n_samples = 5\n",
"outputs = []\n",
"csv_file = \"../mailcom/test/data/mails_lb_sg_copy.csv\"\n",
"csv_file = \"../mailcom/test/data/mails_lb_sg.csv\"\n",
"\n",
"# first make a dummy run since there seem to be some inconsitencies when loading for the first time\n",
"_ = performance_test(csv_file, -1)\n",
"\n",
"# testing\n",
"for bs in batching_sizes:\n",
" average_email_time = 0\n",
" for sid in range(n_samples):\n",
" t, out = performance_test(csv_file, bs)\n",
" average_email_time += t\n",
" test_result_dict = {\n",
" \"batch_size\": bs,\n",
" \"sample\": sid,\n",
" \"email_outputs\": out,\n",
" \"average_email_time\": average_email_time\n",
" \"average_email_time\": t\n",
" }\n",
" outputs.append(test_result_dict)\n"
]
Expand Down

0 comments on commit b408625

Please sign in to comment.