Exercise

Neural separation

Put on your gloves because you're going to perform brain surgery!

Neurons learn by updating their weights to output values that help them better distinguish between the different output classes in your dataset. You will make use of the inp_to_out() function you just built to visualize the output of two neurons in the first layer of the Banknote Authentication model as it learns.

The model you built in chapter 2 is ready for you to use, just like X_test and y_test. Paste show_code(plot) in the console if you want to check plot().

You're performing heavy duty, once all is done, click through the graphs to watch the separation live!

Instructions

100 XP
  • Use the previously defined inp_to_out() function to get the outputs of the first layer when fed with X_test.
  • Use the model.evaluate() method to obtain the validation accuracy for the test dataset at each epoch.