-
- Downloads
[SPARK-1157][MLlib] Bug fix: lossHistory should exclude rejection steps, and remove miniBatch
Getting the lossHistory from Breeze's API which already excludes the rejection steps in line search. Also, remove the miniBatch in LBFGS since those quasi-Newton methods approximate the inverse of Hessian. It doesn't make sense if the gradients are computed from a varying objective. Author: DB Tsai <dbtsai@alpinenow.com> Closes #582 from dbtsai/dbtsai-lbfgs-bug and squashes the following commits: 9cc6cf9 [DB Tsai] Removed the miniBatch in LBFGS. 1ba6a33 [DB Tsai] Formatting the code. d72c679 [DB Tsai] Using Breeze's states to get the loss.
Showing
- mllib/src/main/scala/org/apache/spark/mllib/optimization/LBFGS.scala 25 additions, 38 deletions...ain/scala/org/apache/spark/mllib/optimization/LBFGS.scala
- mllib/src/test/scala/org/apache/spark/mllib/optimization/LBFGSSuite.scala 5 additions, 10 deletions...cala/org/apache/spark/mllib/optimization/LBFGSSuite.scala
Please register or sign in to comment