Skip to content
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

Fix typo in sample code of ch15, layers API #125

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
44 changes: 22 additions & 22 deletions code/ch15/ch15.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1637,8 +1637,8 @@
" print('Epoch %02d: Training Avg. Loss: '\n",
" '%7.3f' % (epoch, avg_loss), end=' ')\n",
" if validation_set is not None:\n",
" feed = {'tf_x:0': batch_x, \n",
" 'tf_y:0': batch_y,\n",
" feed = {'tf_x:0': validation_set[0], \n",
" 'tf_y:0': validation_set[1],\n",
" 'is_train:0': False} ## for dropout\n",
" valid_acc = self.sess.run('accuracy:0',\n",
" feed_dict=feed)\n",
Expand Down Expand Up @@ -1677,26 +1677,26 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Epoch 01: Training Avg. Loss: 268.987 Validation Acc: 1.000\n",
"Epoch 02: Training Avg. Loss: 74.486 Validation Acc: 0.875\n",
"Epoch 03: Training Avg. Loss: 52.117 Validation Acc: 1.000\n",
"Epoch 04: Training Avg. Loss: 39.806 Validation Acc: 1.000\n",
"Epoch 05: Training Avg. Loss: 32.414 Validation Acc: 1.000\n",
"Epoch 06: Training Avg. Loss: 26.618 Validation Acc: 1.000\n",
"Epoch 07: Training Avg. Loss: 23.094 Validation Acc: 1.000\n",
"Epoch 08: Training Avg. Loss: 20.137 Validation Acc: 1.000\n",
"Epoch 09: Training Avg. Loss: 16.671 Validation Acc: 1.000\n",
"Epoch 10: Training Avg. Loss: 14.952 Validation Acc: 1.000\n",
"Epoch 11: Training Avg. Loss: 13.560 Validation Acc: 1.000\n",
"Epoch 12: Training Avg. Loss: 11.613 Validation Acc: 1.000\n",
"Epoch 13: Training Avg. Loss: 10.470 Validation Acc: 1.000\n",
"Epoch 14: Training Avg. Loss: 9.030 Validation Acc: 1.000\n",
"Epoch 15: Training Avg. Loss: 7.954 Validation Acc: 1.000\n",
"Epoch 16: Training Avg. Loss: 7.190 Validation Acc: 1.000\n",
"Epoch 17: Training Avg. Loss: 6.256 Validation Acc: 1.000\n",
"Epoch 18: Training Avg. Loss: 6.063 Validation Acc: 1.000\n",
"Epoch 19: Training Avg. Loss: 5.371 Validation Acc: 1.000\n",
"Epoch 20: Training Avg. Loss: 4.323 Validation Acc: 1.000\n",
"Epoch 01: Training Avg. Loss: 268.987 Validation Acc: 0.973\n",
"Epoch 02: Training Avg. Loss: 74.486 Validation Acc: 0.983\n",
"Epoch 03: Training Avg. Loss: 52.117 Validation Acc: 0.985\n",
"Epoch 04: Training Avg. Loss: 39.806 Validation Acc: 0.988\n",
"Epoch 05: Training Avg. Loss: 32.414 Validation Acc: 0.989\n",
"Epoch 06: Training Avg. Loss: 26.618 Validation Acc: 0.989\n",
"Epoch 07: Training Avg. Loss: 23.094 Validation Acc: 0.989\n",
"Epoch 08: Training Avg. Loss: 20.137 Validation Acc: 0.991\n",
"Epoch 09: Training Avg. Loss: 16.671 Validation Acc: 0.991\n",
"Epoch 10: Training Avg. Loss: 14.952 Validation Acc: 0.991\n",
"Epoch 11: Training Avg. Loss: 13.560 Validation Acc: 0.991\n",
"Epoch 12: Training Avg. Loss: 11.613 Validation Acc: 0.991\n",
"Epoch 13: Training Avg. Loss: 10.470 Validation Acc: 0.989\n",
"Epoch 14: Training Avg. Loss: 9.030 Validation Acc: 0.992\n",
"Epoch 15: Training Avg. Loss: 7.954 Validation Acc: 0.991\n",
"Epoch 16: Training Avg. Loss: 7.190 Validation Acc: 0.992\n",
"Epoch 17: Training Avg. Loss: 6.256 Validation Acc: 0.992\n",
"Epoch 18: Training Avg. Loss: 6.063 Validation Acc: 0.992\n",
"Epoch 19: Training Avg. Loss: 5.371 Validation Acc: 0.991\n",
"Epoch 20: Training Avg. Loss: 4.323 Validation Acc: 0.992\n",
"Saving model in ./tflayers-model/\n"
]
}
Expand Down
Loading