train neural network on data