public class L1Regularizer extends GradientDescentUpdater
| Constructor and Description |
|---|
L1Regularizer() |
| Modifier and Type | Method and Description |
|---|---|
CostWeightTuple |
computeNewWeights(de.jungblut.math.DoubleVector theta,
de.jungblut.math.DoubleVector gradient,
double learningRate,
long iteration,
double lambda,
double cost)
Simplistic gradient descent without regularization.
|
computeGradientpublic CostWeightTuple computeNewWeights(de.jungblut.math.DoubleVector theta, de.jungblut.math.DoubleVector gradient, double learningRate, long iteration, double lambda, double cost)
GradientDescentUpdatercomputeNewWeights in interface WeightUpdatercomputeNewWeights in class GradientDescentUpdatertheta - the old weights.gradient - the gradient.learningRate - the learning rate.iteration - the number of the current iteration.lambda - the regularization parameter.cost - the computed cost for this gradient update.Copyright © 2015. All rights reserved.