tools.mse#
- bartorch.tools.mse()#
Mean squared error
mean |input - reference|²over every element .- Parameters:
magnitude (bool, default=False) – Compare magnitudes,
mean (|input| - |reference|)², taken as the root sum of squares over the coil axis-4of a C-order(..., coils, z, y, x)array .