public class CRFNonLinearSecondOrderLogConditionalObjectiveFunction extends AbstractCachingDiffFunction implements HasCliquePotentialFunction
| Modifier and Type | Field and Description |
|---|---|
protected double |
epsilon |
static int |
HUBER_PRIOR |
static int |
NO_PRIOR |
protected int |
prior |
static int |
QUADRATIC_PRIOR |
static int |
QUARTIC_PRIOR |
protected double |
sigma |
static boolean |
VERBOSE |
derivative, generator, value| Modifier and Type | Method and Description |
|---|---|
void |
calculate(double[] x)
Calculates both value and partial derivatives at the point x, and save them internally.
|
int |
domainDimension()
Returns the number of dimensions in the function's domain
|
double[][] |
emptyFull2D() |
CliquePotentialFunction |
getCliquePotentialFunction(double[] x) |
static int |
getPriorType(java.lang.String priorTypeStr) |
double[] |
initial()
Returns the intitial point in the domain (but not necessarily a feasible one).
|
Quadruple<double[][],double[][],double[][],double[][]> |
separateWeights(double[] x) |
clearCache, copy, derivativeAt, ensure, getDerivative, gradientCheck, gradientCheck, lastValue, randomInitial, valueAtpublic static final int NO_PRIOR
public static final int QUADRATIC_PRIOR
public static final int HUBER_PRIOR
public static final int QUARTIC_PRIOR
protected int prior
protected double sigma
protected double epsilon
public static boolean VERBOSE
public static int getPriorType(java.lang.String priorTypeStr)
public int domainDimension()
FunctiondomainDimension in interface Functionpublic double[] initial()
HasInitialinitial in interface HasInitialinitial in class AbstractCachingDiffFunctionpublic Quadruple<double[][],double[][],double[][],double[][]> separateWeights(double[] x)
public CliquePotentialFunction getCliquePotentialFunction(double[] x)
getCliquePotentialFunction in interface HasCliquePotentialFunctionpublic void calculate(double[] x)
calculate in class AbstractCachingDiffFunctionx - The point at which to calculate the functionpublic double[][] emptyFull2D()