Skip to content

Commit 978b193

Browse files
committed
faster cocoa update
1 parent c9960c9 commit 978b193

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/solvers/CoCoA.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ object CoCoA {
180180
// update primal and dual variables
181181
val update = x * (y * (newAlpha - alpha(idx)) / (lambda * n))
182182
if (!plus) {
183-
w = w + update
183+
w += update
184184
}
185185
deltaW += update
186186
alpha(idx) = newAlpha

0 commit comments

Comments
 (0)