Here I have provided and example where Neural-Network is used to predict a 1-D regression model.