Removed logcosh

This commit is contained in:
thebhatman 2019-04-05 03:16:54 +05:30
parent 4efcc69ba5
commit b84ab7ac95
2 changed files with 0 additions and 10 deletions

View File

@ -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)

View File

@ -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)