public interface WeightUpdater
| Modifier and Type | Method and Description |
|---|---|
de.jungblut.math.minimize.CostGradientTuple |
computeGradient(de.jungblut.math.DoubleVector theta,
de.jungblut.math.DoubleVector gradient,
double learningRate,
long iteration,
double lambda,
double cost)
Computes the gradient.
|
CostWeightTuple |
computeNewWeights(de.jungblut.math.DoubleVector theta,
de.jungblut.math.DoubleVector gradient,
double learningRate,
long iteration,
double lambda,
double cost)
Computes the update for the given weights.
|
CostWeightTuple computeNewWeights(de.jungblut.math.DoubleVector theta, de.jungblut.math.DoubleVector gradient, double learningRate, long iteration, double lambda, double cost)
theta - 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.de.jungblut.math.minimize.CostGradientTuple computeGradient(de.jungblut.math.DoubleVector theta,
de.jungblut.math.DoubleVector gradient,
double learningRate,
long iteration,
double lambda,
double cost)
theta - 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.