Exercise

Cross-validation for neural network evaluation

To evaluate the model, we use a separate test data-set. As in the train data, the images in the test data also need to be reshaped before they can be provided to the fully-connected network because the network expects one column per pixel in the input.

The model you fit in the previous exercise, and test_data and test_labels are available in your workspace.

Instructions

100 XP
  • Reshape the test_data so that it can be used to evaluate the model.
  • Evaluate the model on test_data using test_labels.