Skip to content

Commit b470788

Browse files
committed
Update wording and numbering in code comments.
1 parent 22cc58c commit b470788

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
@@ -396,8 +396,8 @@ weights_2 = 0.2 * np.random.random((hidden_size, num_labels)) - 0.1
396396
```
397397

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

402402
Start the training process:
403403

@@ -465,9 +465,9 @@ for j in range(epochs):
465465
store_training_loss.append(training_loss)
466466
store_training_accurate_pred.append(training_accurate_predictions)
467467
468-
################
469-
# Testing step #
470-
################
468+
###################
469+
# Evaluation step #
470+
###################
471471
472472
# Evaluate model performance on the test set at each epoch.
473473
@@ -490,7 +490,7 @@ for j in range(epochs):
490490
store_test_loss.append(test_loss)
491491
store_test_accurate_pred.append(test_accurate_predictions)
492492
493-
# 3. Display the error and accuracy metrics in the output.
493+
# Summarize error and accuracy metrics at each epoch
494494
print("\n" + \
495495
"Epoch: " + str(j) + \
496496
" Training set error:" + str(training_loss/ float(len(training_images)))[0:5] +\

0 commit comments

Comments
 (0)