Feeding data into the trainer to optimize the neural network