I want to train a feed-forward neural network. the purpose of this neural network is to fit the best regression to the data points(an approximation of non-linear function).