I'm doing some simulations and I would like to estimate a real number that is uniformly distributed between minValue and maxValue. For instance, between 20 and 30 (it's not an angle, so estimating its sine isn't appropiate). So far, I have used the MSE loss, but after plotting the histogram of the estimated samples, they follow a Gaussian distribution.
After some research on the Internet, I saw that using the L2 norm assumes that the target is normally distributed (unrelated question: what is the mathematical reason for that?). However, the target follows an uniform distribution.
Therefore, what could be a good loss function to improve the distribution of the estimations? Could it be solved by using a bigger network? My network is composed by 9 convLayers imitating the ResNet architecture and a fully-connected layer to estimate the target.
Finally, since the target data is being simulated, I have access to infinite data.