Updated squared_hinge

This commit is contained in:
Adarsh Kumar 2020-02-05 22:40:07 +05:30 committed by GitHub
parent 7ac647a7ac
commit 643086c8db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -223,5 +223,5 @@ hinge(ŷ, y) = sum(max.(0, 1 .- ŷ .* y)) *1 // size(y,2)
L2 loss function. Computes squared hinge loss over the prediction and true labels y(conatining 1 or -1)
"""
squared_hinge(, y) = sum((max.(0,1.-.*y)).^2) *1//size(y,2)
squared_hinge(, y) = sum((max.(0,1 .- .* y)).^2) *1//size(y,2)