Checking the performance of the neural network