Skip to content
Advertisement

Tag: mse

Python numba returned data types when calculating MSE

I am using numba to calculate MSE. The input are images which are ready as numpy arrays of uint8. Each element is 0-255. When calculating the squared difference between two images the python function returns (expectedly) a uint8 result, but the same function when using numba returns int64. What’s unclear to me is why the python-only code preserves the data-type

why does the mse loss had a sudden jump?

i’m working on a regression problem using neural network. the mse loss would decrease at the beginning of train and the accuracy is satisfactory, yet, when the train process goes on, the loss had a huge jump, and maintain at a certain value,like the curve in the picture. i don’t know why and how to fix it? and i wanna

Advertisement