public class L2Regularizer extends GradientDescentUpdater
| Constructor and Description |
|---|
L2Regularizer() |
| Modifier and Type | Method and Description |
|---|---|
de.jungblut.math.minimize.CostGradientTuple |
computeGradient(de.jungblut.math.DoubleVector weights,
de.jungblut.math.DoubleVector gradient,
double learningRate,
long iteration,
double lambda,
double cost)
Computes the gradient.
|
computeNewWeightspublic de.jungblut.math.minimize.CostGradientTuple computeGradient(de.jungblut.math.DoubleVector weights,
de.jungblut.math.DoubleVector gradient,
double learningRate,
long iteration,
double lambda,
double cost)
WeightUpdatercomputeGradient in interface WeightUpdatercomputeGradient in class GradientDescentUpdaterweights - 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.