6 lines
102 B
Julia
6 lines
102 B
Julia
export mse, mse!
|
|
|
|
mse(ŷ, y) = sumabs2(ŷ .- y)/2
|
|
|
|
back!(::typeof(mse), Δ, ŷ, y) = Δ*(ŷ .- y)
|