public class SimpleUpdater extends Updater
Constructor and Description |
---|
SimpleUpdater() |
public scala.Tuple2<Vector,Object> compute(Vector weightsOld, Vector gradient, double stepSize, int iter, double regParam)
Updater
compute
in class Updater
weightsOld
- - Column matrix of size dx1 where d is the number of features.gradient
- - Column matrix of size dx1 where d is the number of features.stepSize
- - step size across iterationsiter
- - Iteration numberregParam
- - Regularization parameter