edu.stanford.nlp.ie.crf
Class CRFLogConditionalObjectiveFloatFunction
java.lang.Object
edu.stanford.nlp.optimization.AbstractCachingDiffFloatFunction
edu.stanford.nlp.ie.crf.CRFLogConditionalObjectiveFloatFunction
- All Implemented Interfaces:
- DiffFloatFunction, FloatFunction, HasFloatInitial
public class CRFLogConditionalObjectiveFloatFunction
- extends AbstractCachingDiffFloatFunction
- Author:
- Jenny Finkel
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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