public class CRFLogConditionalObjectiveFunctionForLOP extends AbstractCachingDiffFunction implements HasCliquePotentialFunction
Modifier and Type | Field and Description |
---|---|
static boolean |
VERBOSE |
derivative, 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, valueAt
public int domainDimension()
Function
domainDimension
in interface Function
public double[] initial()
HasInitial
initial
in interface HasInitial
initial
in class AbstractCachingDiffFunction
public 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 HasCliquePotentialFunction
public void calculate(double[] x)
calculate
in class AbstractCachingDiffFunction
x
- The point at which to calculate the function