![JAR search and dependency download from the Maven repository](/logo.png)
edu.berkeley.nlp.math.ExponentiatedGradientMinimizer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of berkeleyparser Show documentation
Show all versions of berkeleyparser Show documentation
The Berkeley parser analyzes the grammatical structure of natural language using probabilistic context-free grammars (PCFGs).
The newest version!
package edu.berkeley.nlp.math;
import edu.berkeley.nlp.util.Logger;
public class ExponentiatedGradientMinimizer implements GradientMinimizer {
private final static double EPS = 1e-10;
private final Normalizer normalizer;
private final int maxIterations;
private final double stepSizeMultiplier;
public ExponentiatedGradientMinimizer(Normalizer normalizer, int maxIterations, double stepSizeMultiplier) {
this.normalizer = normalizer;
this.maxIterations = maxIterations;
this.stepSizeMultiplier = stepSizeMultiplier;
}
public double[] minimize(DifferentiableFunction function, double[] initial, double tolerance, boolean project){
return null;
}
public double[] minimize(DifferentiableFunction function, double[] initial, double tolerance) {
double[] guess = DoubleArrays.clone(initial);
for (int iteration=0; iteration
© 2015 - 2025 Weber Informatics LLC | Privacy Policy