Skip to content

Commit

Permalink
Merge 1d03728 into 64d4c4e
Browse files Browse the repository at this point in the history
  • Loading branch information
joshday committed Sep 7, 2018
2 parents 64d4c4e + 1d03728 commit 6af66f1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/supervised/distance.jl
Expand Up @@ -73,7 +73,6 @@ L(r) = |r|
"""
const L1DistLoss = LPDistLoss{1}

sumvalue(loss::L1DistLoss, difference::AbstractArray) = sumabs(difference)
value(loss::L1DistLoss, difference::Number) = abs(difference)
deriv(loss::L1DistLoss, difference::T) where {T<:Number} = convert(T, sign(difference))
deriv2(loss::L1DistLoss, difference::T) where {T<:Number} = zero(T)
Expand Down

0 comments on commit 6af66f1

Please sign in to comment.