Skip to content
This repository was archived by the owner on Sep 28, 2024. It is now read-only.

Commit 3f8416a

Browse files
committed
Update param name
1 parent 4805885 commit 3f8416a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/loss.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
export l₂loss
22

3-
function l₂loss(𝐲̂, 𝐲; agg=mean, is_grid_normalized=true)
3+
function l₂loss(𝐲̂, 𝐲; agg=mean, grid_normalize=true)
44
feature_dims = 2:(ndims(𝐲)-1)
55
loss = agg(.√(sum(abs2, 𝐲̂-𝐲, dims=feature_dims)))
66

7-
return is_grid_normalized ? loss/prod(feature_dims) : loss
7+
return grid_normalize ? loss/prod(feature_dims) : loss
88
end

0 commit comments

Comments
 (0)