diff --git a/julia/src/metric.jl b/julia/src/metric.jl index f1cdc68d947f..41f01d8b6b9a 100644 --- a/julia/src/metric.jl +++ b/julia/src/metric.jl @@ -260,7 +260,7 @@ end function get(metric::MSE) # Delay copy until last possible moment - mse_sum = mapreduce(nda->copy(nda)[1], +, 0.0, metric.mse_sum) + mse_sum = mapreduce(nda->copy(nda)[1], +, metric.mse_sum) [(:MSE, mse_sum / metric.n_sample)] end