Test the Network on the Whole Dataset
Test the neural network performance based on the score of each record.
We'll cover the following...
We'll cover the following...
Maintain the score of each record
Let’s keep going and write the code to see how the neural network performs against the rest of the dataset, and keep a score so we can see later if our own ideas for improving the learning worked and also to compare with how well others have done this.
Before we jump into the loop that works through all the test dataset records, we’ll create an empty list called scorecard, which will be the scorecard that we update after each record.
Code explanation
Lines 9–16: We can see that inside the loop, we do what we did before. We split the text record by the commas to separate out the values. We keep a note of the first value as the correct ...