Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 1 addition & 3 deletions knowledge.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1233,10 +1233,8 @@
]
},
{
"cell_type": "code",
"execution_count": null,
"cell_type": "markdown",
"metadata": {},
"outputs": [],
"source": [
"Lets look at the pseudocode for this algorithm"
]
Expand Down
4 changes: 2 additions & 2 deletions learning_apps.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@
"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"
]
}
],
"source": [
"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)"
]
},
{
Expand Down
1 change: 1 addition & 0 deletions probability.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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]))"
]
Expand Down