public class NormalizedPositiveGradientDescent extends GradientDescent
Constructor and Description |
---|
NormalizedPositiveGradientDescent() |
Modifier and Type | Method and Description |
---|---|
static void |
normalize(double[] weights) |
protected void |
postProcessWeights(double[] theta)
Renormalizes weights, such that their average is 1 and ensures they are all positive.
|
optimize
protected void postProcessWeights(double[] theta)
postProcessWeights
in class GradientDescent
theta
- weights to be normalizedpublic static void normalize(double[] weights)