From 6ccad342e40e027e88553794519149c69a22336c Mon Sep 17 00:00:00 2001 From: Vinay Varma Date: Sat, 14 Apr 2018 12:08:11 +0530 Subject: [PATCH 1/3] corrected cell type --- knowledge.ipynb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/knowledge.ipynb b/knowledge.ipynb index c21de646c..2f4276452 100644 --- a/knowledge.ipynb +++ b/knowledge.ipynb @@ -1233,10 +1233,8 @@ ] }, { - "cell_type": "code", - "execution_count": null, + "cell_type": "markdown", "metadata": {}, - "outputs": [], "source": [ "Lets look at the pseudocode for this algorithm" ] From 1ae1fbf94e37d304770cbbc949b83adf1a3df0e7 Mon Sep 17 00:00:00 2001 From: Vinay Varma Date: Sat, 14 Apr 2018 12:20:36 +0530 Subject: [PATCH 2/3] fixed umbrella_prior not defined error --- probability.ipynb | 1 + 1 file changed, 1 insertion(+) diff --git a/probability.ipynb b/probability.ipynb index 028c17bde..58e9b1994 100644 --- a/probability.ipynb +++ b/probability.ipynb @@ -1728,6 +1728,7 @@ } ], "source": [ + "umbrella_prior = [0.5, 0.5]\n", "belief_day_1 = forward(hmm, umbrella_prior, ev=True)\n", "print ('The probability of raining on day 1 is {:.2f}'.format(belief_day_1[0]))" ] From 3deb831151f228584b0ba41c0c5e0c91f211b487 Mon Sep 17 00:00:00 2001 From: Vinay Varma Date: Sun, 15 Apr 2018 01:29:53 +0530 Subject: [PATCH 3/3] minor changes --- learning_apps.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/learning_apps.ipynb b/learning_apps.ipynb index 339d407a2..bff723050 100644 --- a/learning_apps.ipynb +++ b/learning_apps.ipynb @@ -93,7 +93,7 @@ "Training images size: (60000, 784)\n", "Training labels size: (60000,)\n", "Testing images size: (10000, 784)\n", - "Training labels size: (10000,)\n" + "Testing labels size: (10000,)\n" ] } ], @@ -101,7 +101,7 @@ "print(\"Training images size:\", train_img.shape)\n", "print(\"Training labels size:\", train_lbl.shape)\n", "print(\"Testing images size:\", test_img.shape)\n", - "print(\"Training labels size:\", test_lbl.shape)" + "print(\"Testing labels size:\", test_lbl.shape)" ] }, {