Avoided promotion to Float64 in hinge.

This commit is contained in:
Manjunath Bhat 2019-03-25 23:43:06 +05:30 committed by GitHub
parent 6f078857be
commit 930adb122d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,5 +79,5 @@ poisson(ŷ, y) = sum(ŷ .- y .* log.(ŷ)) *1 // size(y,2)
"""
logcosh(, y) = sum(log.(cosh.( .- y)))
hinge(, y) = sum(max.(0.0, 1 .- .* y)) *1 // size(y,2)
hinge(, y) = sum(max.(0, 1 .- .* y)) *1 // size(y,2)