Skip to content

Commit

Permalink
remove empty line
Browse files Browse the repository at this point in the history
  • Loading branch information
DB Tsai committed Jan 7, 2015
1 parent 3239541 commit bec6a84
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ class LogisticGradient extends Gradient {
override def compute(data: Vector, label: Double, weights: Vector): (Vector, Double) = {
val margin = -1.0 * dot(data, weights)
val gradientMultiplier = (1.0 / (1.0 + math.exp(margin))) - label

val gradient = data.copy
scal(gradientMultiplier, gradient)
val loss =
Expand Down

0 comments on commit bec6a84

Please sign in to comment.