Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions examples/asr/notebooks/6_VAD_using_NeMo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
"if not os.path.exists(tmp):\n",
" os.makedirs(tmp)\n",
"if not os.path.exists(data_folder):\n",
" os.makedirs(data_folders)"
" os.makedirs(data_folder)"
]
},
{
Expand Down Expand Up @@ -148,7 +148,7 @@
},
"outputs": [],
"source": [
"!python $script --out_dir={out_dir} --speech_data_root={speech_data_root} --background_data_root={background_data_root} --log --generate --rebalance_method='fixed' \n"
"!python $script --out_dir={out_dir} --speech_data_root={speech_data_root} --background_data_root={background_data_root} --log --generate --rebalance_method='fixed' "
]
},
{
Expand Down Expand Up @@ -585,7 +585,7 @@
" \"grad_norm_clip\": None,\n",
" },\n",
" batches_per_step=1,\n",
")\n"
")"
]
},
{
Expand Down Expand Up @@ -708,10 +708,10 @@
" total_true_positive += tp\n",
"\n",
"\n",
"logging.info(f\" True Positive: {total_true_positive}\")\n",
"logging.info(f\" False Positive : {total_false_positive}\")\n",
"logging.info(f\" False Negative : {total_false_negative}\")\n",
"logging.info(f\" True Negative : {total_true_negative}\")\n",
"logging.info(f\"True Positive: {total_true_positive}\")\n",
"logging.info(f\"False Positive : {total_false_positive}\")\n",
"logging.info(f\"False Negative : {total_false_negative}\")\n",
"logging.info(f\"True Negative : {total_true_negative}\")\n",
"\n",
"accuracy = (total_true_positive + total_true_negative) \\\n",
" / (total_true_positive + total_true_negative + total_false_negative + total_false_positive)\n",
Expand Down