Skip to content

Commit 59876a1

Browse files
🤖 Format .jl files (#185)
Co-authored-by: juliohm <[email protected]>
1 parent 69b2a8d commit 59876a1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/losses/margin.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,7 @@ L(a) = \ln (1 + e^{-a})
131131
struct LogitMarginLoss <: MarginLoss end
132132
(loss::LogitMarginLoss)(agreement::Number) = log1p(exp(-agreement))
133133
deriv(loss::LogitMarginLoss, agreement::Number) = -one(agreement) / (one(agreement) + exp(agreement))
134-
deriv2(loss::LogitMarginLoss, agreement::Number) = (eᵗ = exp(agreement);
135-
eᵗ / abs2(one(eᵗ) + eᵗ))
134+
deriv2(loss::LogitMarginLoss, agreement::Number) = (eᵗ=exp(agreement); eᵗ / abs2(one(eᵗ) + eᵗ))
136135

137136
isunivfishercons(::LogitMarginLoss) = true
138137
isdifferentiable(::LogitMarginLoss) = true

0 commit comments

Comments
 (0)