Error correction in mae
This commit is contained in:
parent
44a977b7a4
commit
b5184553d4
@ -6,7 +6,7 @@ using NNlib: logsoftmax, logσ
|
|||||||
mae(ŷ, y)
|
mae(ŷ, y)
|
||||||
L1 loss function. Computes the mean of absolute error between prediction and true values
|
L1 loss function. Computes the mean of absolute error between prediction and true values
|
||||||
"""
|
"""
|
||||||
mae(ŷ, y) = sum(abs.(ŷ, y)) * 1 // length(y)
|
mae(ŷ, y) = sum(abs.(ŷ.- y)) * 1 // length(y)
|
||||||
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user