the result of the function there is the mean  as float (not an int)

You cannot have sign in the loss function and expect good results

i think i understand the reason but could that be “added” to the result of a normal mse to give importance also to the direction?