All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.berkeley.nlp.math.Regularizer Maven / Gradle / Ivy

Go to download

The Berkeley parser analyzes the grammatical structure of natural language using probabilistic context-free grammars (PCFGs).

The newest version!
package edu.berkeley.nlp.math;

/**
 * User: aria42
 * Date: Mar 10, 2009
 */
public interface Regularizer {
  /**
   * Return Regularizer value and in-place grad update scaled
   * by constant c
   * @param weights
   * @param grad
   * @return
   */
  public double update(double[] weights, double[] grad, double c);
  public double val(double[] weights, double c);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy