Skip to content

Commit

Permalink
Add Fashion MNIST neural-network demo.
Browse files Browse the repository at this point in the history
  • Loading branch information
trekhleb committed Dec 24, 2018
1 parent 403ea23 commit 34c4ac1
Show file tree
Hide file tree
Showing 2 changed files with 736 additions and 3 deletions.
6 changes: 3 additions & 3 deletions notebooks/neural_network/multilayer_perceptron_demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@
"\n",
"# Go through the first numbers in a training set and plot them.\n",
"for plot_index in range(numbers_to_display):\n",
" # Extrace digit data.\n",
" # Extract digit data.\n",
" digit = data[plot_index:plot_index + 1].values\n",
" digit_label = digit[0][0]\n",
" digit_pixels = digit[0][1:]\n",
Expand Down Expand Up @@ -609,7 +609,7 @@
"source": [
"### Plot Test Dataset Predictions\n",
"\n",
"In order to illustrate how our model classifies unknown examples let's plot first 64 predictions for testing dataset. All green digits on the plot below have been recognized corrctly but all the red digits have not been recognized correctly by our classifier. On top of each digit image you may see the class (the number) that has been recognized on the image."
"In order to illustrate how our model classifies unknown examples let's plot first 64 predictions for testing dataset. All green digits on the plot below have been recognized correctly but all the red digits have not been recognized correctly by our classifier. On top of each digit image you may see the class (the number) that has been recognized on the image."
]
},
{
Expand Down Expand Up @@ -640,7 +640,7 @@
"\n",
"# Go through the first numbers in a test set and plot them.\n",
"for plot_index in range(numbers_to_display):\n",
" # Extrace digit data.\n",
" # Extract digit data.\n",
" digit_label = y_test[plot_index, 0]\n",
" digit_pixels = x_test[plot_index, :]\n",
" \n",
Expand Down
Loading

0 comments on commit 34c4ac1

Please sign in to comment.