org.apache.spark.mllib.optimization
Compute an updated value for weights given the gradient, stepSize, iteration number and regularization parameter.
Compute an updated value for weights given the gradient, stepSize, iteration number and regularization parameter. Also returns the regularization value regParam * R(w) computed using the *updated* weights.
- Column matrix of size dx1 where d is the number of features.
- Column matrix of size dx1 where d is the number of features.
- step size across iterations
- Iteration number
- Regularization parameter
A tuple of 2 elements. The first element is a column matrix containing updated weights, and the second element is the regularization value computed using updated weights.
:: DeveloperApi :: Updater for L2 regularized problems. R(w) = 1/2 ||w||^2 Uses a step-size decreasing with the square root of the number of iterations.