Skip to content

Commit

Permalink
Modify based on SPARK-1503
Browse files Browse the repository at this point in the history
  • Loading branch information
Lewuathe committed Jul 1, 2015
1 parent 5e47b82 commit 4f22c2b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ object GradientDescent extends Logging {
// This represents the difference of updated weights in the iteration.
val solutionVecDiff: Double = norm(previousBDV - currentBDV)

solutionVecDiff < convergenceTol * norm(previousBDV)
solutionVecDiff < convergenceTol * Math.max(norm(currentBDV), 1.0)
}

}

0 comments on commit 4f22c2b

Please sign in to comment.