edu.stanford.nlp.ie.crf
Class CRFLogConditionalObjectiveFloatFunction

java.lang.Object
  extended by edu.stanford.nlp.optimization.AbstractCachingDiffFloatFunction
      extended by edu.stanford.nlp.ie.crf.CRFLogConditionalObjectiveFloatFunction
All Implemented Interfaces:
DiffFloatFunction, FloatFunction, HasFloatInitial

public class CRFLogConditionalObjectiveFloatFunction
extends AbstractCachingDiffFloatFunction

Author:
Jenny Finkel

Field Summary
protected  float epsilon
           
static int HUBER_PRIOR
           
static int NO_PRIOR
           
protected  int prior
           
static int QUADRATIC_PRIOR
           
static int QUARTIC_PRIOR
           
protected  float sigma
           
static boolean VERBOSE
           
 
Fields inherited from class edu.stanford.nlp.optimization.AbstractCachingDiffFloatFunction
derivative, value
 
Method Summary
 void calculate(float[] x)
          Calculate the value at x and the derivative and save them in the respective fields
 void calculateWeird(float[] x)
           
 void calculateWeird1(float[] x)
           
 int domainDimension()
          Returns the number of dimensions in the function's domain
 float[][] empty2D()
           
static FloatFactorTable[] getCalibratedCliqueTree(float[][] weights, int[][][] data, Index[] labelIndices, int numClasses)
           
static FloatFactorTable getFloatFactorTable(float[][] weights, int[][] data, Index[] labelIndices, int numClasses)
           
 float[] to1D(float[][] weights)
           
 float[][] to2D(float[] weights)
           
 
Methods inherited from class edu.stanford.nlp.optimization.AbstractCachingDiffFloatFunction
copy, derivativeAt, initial, valueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_PRIOR

public static final int NO_PRIOR
See Also:
Constant Field Values

QUADRATIC_PRIOR

public static final int QUADRATIC_PRIOR
See Also:
Constant Field Values

HUBER_PRIOR

public static final int HUBER_PRIOR
See Also:
Constant Field Values

QUARTIC_PRIOR

public static final int QUARTIC_PRIOR
See Also:
Constant Field Values

prior

protected int prior

sigma

protected float sigma

epsilon

protected float epsilon

VERBOSE

public static boolean VERBOSE
Method Detail

domainDimension

public int domainDimension()
Description copied from interface: FloatFunction
Returns the number of dimensions in the function's domain

Specified by:
domainDimension in interface FloatFunction
Specified by:
domainDimension in class AbstractCachingDiffFloatFunction
Returns:
the number of domain dimensions

to2D

public float[][] to2D(float[] weights)

to1D

public float[] to1D(float[][] weights)

empty2D

public float[][] empty2D()

getFloatFactorTable

public static FloatFactorTable getFloatFactorTable(float[][] weights,
                                                   int[][] data,
                                                   Index[] labelIndices,
                                                   int numClasses)

getCalibratedCliqueTree

public static FloatFactorTable[] getCalibratedCliqueTree(float[][] weights,
                                                         int[][][] data,
                                                         Index[] labelIndices,
                                                         int numClasses)

calculate

public void calculate(float[] x)
Description copied from class: AbstractCachingDiffFloatFunction
Calculate the value at x and the derivative and save them in the respective fields

Specified by:
calculate in class AbstractCachingDiffFloatFunction

calculateWeird1

public void calculateWeird1(float[] x)

calculateWeird

public void calculateWeird(float[] x)


Stanford NLP Group