From 3e2125138b62cf26cbbd09c9c7e5eb0fdac41a9f Mon Sep 17 00:00:00 2001 From: fayejf Date: Mon, 8 Jun 2020 17:23:34 -0700 Subject: [PATCH] fix bug Signed-off-by: fayejf --- examples/asr/notebooks/6_VAD_using_NeMo.ipynb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/asr/notebooks/6_VAD_using_NeMo.ipynb b/examples/asr/notebooks/6_VAD_using_NeMo.ipynb index 797a797a6051..2b5f28198219 100644 --- a/examples/asr/notebooks/6_VAD_using_NeMo.ipynb +++ b/examples/asr/notebooks/6_VAD_using_NeMo.ipynb @@ -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)" ] }, { @@ -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' " ] }, { @@ -585,7 +585,7 @@ " \"grad_norm_clip\": None,\n", " },\n", " batches_per_step=1,\n", - ")\n" + ")" ] }, { @@ -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",