public class CRFLogConditionalObjectiveFunctionForLOP extends AbstractCachingDiffFunction implements HasCliquePotentialFunction
| Modifier and Type | Field and Description |
|---|---|
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.
|
static double[] |
combineAndScaleLopWeights(int numLopExpert,
double[][] lopExpertWeights,
double[] lopScales) |
static double[][] |
combineAndScaleLopWeights2D(int numLopExpert,
double[][][] lopExpertWeights2D,
double[] lopScales) |
int |
domainDimension()
Returns the number of dimensions in the function's domain
|
double[][][] |
empty2D() |
CliquePotentialFunction |
getCliquePotentialFunction(double[] x) |
double[] |
initial()
Returns the intitial point in the domain (but not necessarily a feasible one).
|
double[][] |
separateLopExpertWeights(double[] learnedParams) |
double[][][] |
separateLopExpertWeights2D(double[] learnedParams) |
double[] |
separateLopScales(double[] learnedParams) |
double[][] |
to2D(double[] weights,
java.util.List<Index<CRFLabel>> labelIndices,
int[] map) |
clearCache, copy, derivativeAt, ensure, getDerivative, gradientCheck, gradientCheck, lastValue, randomInitial, valueAtpublic int domainDimension()
FunctiondomainDimension in interface Functionpublic double[] initial()
HasInitialinitial in interface HasInitialinitial in class AbstractCachingDiffFunctionpublic double[][][] empty2D()
public double[][] to2D(double[] weights,
java.util.List<Index<CRFLabel>> labelIndices,
int[] map)
public static double[] combineAndScaleLopWeights(int numLopExpert,
double[][] lopExpertWeights,
double[] lopScales)
public static double[][] combineAndScaleLopWeights2D(int numLopExpert,
double[][][] lopExpertWeights2D,
double[] lopScales)
public double[][][] separateLopExpertWeights2D(double[] learnedParams)
public double[][] separateLopExpertWeights(double[] learnedParams)
public double[] separateLopScales(double[] learnedParams)
public CliquePotentialFunction getCliquePotentialFunction(double[] x)
getCliquePotentialFunction in interface HasCliquePotentialFunctionpublic void calculate(double[] x)
calculate in class AbstractCachingDiffFunctionx - The point at which to calculate the function