Removed logcosh
This commit is contained in:
parent
4efcc69ba5
commit
b84ab7ac95
|
@ -74,10 +74,5 @@ https://isaacchanghau.github.io/post/loss_functions/
|
|||
"""
|
||||
poisson(ŷ, y) = sum(ŷ .- y .* log.(ŷ)) *1 // size(y,2)
|
||||
|
||||
"""
|
||||
Logcosh Loss function
|
||||
"""
|
||||
logcosh(ŷ, y) = sum(log.(cosh.(ŷ .- y))) *1 // size(y,2)
|
||||
|
||||
hinge(ŷ, y) = sum(max.(0, 1 .- ŷ .* y)) *1 // size(y,2)
|
||||
|
||||
|
|
|
@ -70,11 +70,6 @@ const ϵ = 1e-7
|
|||
@test Flux.poisson(y, y1) ≈ 1.0160455586700767
|
||||
@test Flux.poisson(y, y) ≈ 0.5044459776946685
|
||||
end
|
||||
|
||||
@testset "logcosh" begin
|
||||
@test Flux.logcosh(y, y1) ≈ 0.044340769925940306
|
||||
@test Flux.logcosh(y, y) ≈ 0
|
||||
end
|
||||
|
||||
@testset "no spurious promotions" begin
|
||||
for T in (Float16, Float32, Float64)
|
||||
|
|
Loading…
Reference in New Issue