I am trying to implement a neural network where I output a vector of 5 parameters each of which I know to be positive. I have code that works where I end up with an `"Output" -> 5.'
However, after training the network, it is often finding good results setting one of these values to be negative. However, physically that is not possible.
Is there a way to change my cost function to enforce (or encourage) positive values?