Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fixed errors in notebooks #910

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 15, 2018
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