I want to make a simple regression network to estimate certain value.
The value should be in the range [0, 2pi], since it is a angle.
I tried to use sigmoid() at the end of the network, and multiply 2pi on it.
But backprop works awful at its head an tail, and gradients are ruined.
Is there any proper way to restrict the prediction value of network, without harm its optimization?