I am trying to predict the evolution of a function with artificial neural network and Keras. The thing is that I want the output of the neural net to be conservative, i.e I