Skip to content

Commit 4bfe1eb

Browse files
committed
Update wording and numbering in code comments.
1 parent 3e94ca9 commit 4bfe1eb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: content/tutorial-deep-learning-on-mnist.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,8 @@ weights_2 = 0.2 * np.random.random((hidden_size, num_labels)) - 0.1
405405
```
406406

407407
**5.** Set up the neural network's learning experiment with a training loop and start the training process.
408-
Note that the model is evaluated at each epoch by running the model on test
409-
set, thus the model improvement can be tracked vs. epoch.
408+
Note that the model is evaluated against the test set at each epoch to track
409+
its performance over the training epochs.
410410

411411
Start the training process:
412412

@@ -474,9 +474,9 @@ for j in range(epochs):
474474
store_training_loss.append(training_loss)
475475
store_training_accurate_pred.append(training_accurate_predictions)
476476
477-
################
478-
# Testing step #
479-
################
477+
###################
478+
# Evaluation step #
479+
###################
480480
481481
# Evaluate model performance on the test set at each epoch.
482482
@@ -499,7 +499,7 @@ for j in range(epochs):
499499
store_test_loss.append(test_loss)
500500
store_test_accurate_pred.append(test_accurate_predictions)
501501
502-
# 3. Display the error and accuracy metrics in the output.
502+
# Summarize error and accuracy metrics at each epoch
503503
print("\n" + \
504504
"Epoch: " + str(j) + \
505505
" Training set error:" + str(training_loss/ float(len(training_images)))[0:5] +\

0 commit comments

Comments
 (0)