public class CRFLogConditionalObjectiveFloatFunction extends AbstractCachingDiffFloatFunction implements HasCliquePotentialFunction
Modifier and Type | Field and Description |
---|---|
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 |
derivative, value
Modifier and Type | Method and Description |
---|---|
void |
calculate(float[] x)
Calculate the value at x and the derivative and save them in the respective fields
|
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,
java.util.List<Index<CRFLabel>> labelIndices,
int numClasses) |
CliquePotentialFunction |
getCliquePotentialFunction(double[] x) |
static FloatFactorTable |
getFloatFactorTable(float[][] weights,
int[][] data,
java.util.List<Index<CRFLabel>> labelIndices,
int numClasses) |
float[] |
to1D(float[][] weights) |
float[][] |
to2D(float[] weights) |
copy, derivativeAt, initial, valueAt
public 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 float sigma
protected float epsilon
public static boolean VERBOSE
public int domainDimension()
FloatFunction
domainDimension
in interface FloatFunction
domainDimension
in class AbstractCachingDiffFloatFunction
public CliquePotentialFunction getCliquePotentialFunction(double[] x)
getCliquePotentialFunction
in interface HasCliquePotentialFunction
public float[][] to2D(float[] weights)
public float[] to1D(float[][] weights)
public float[][] empty2D()
public static FloatFactorTable getFloatFactorTable(float[][] weights, int[][] data, java.util.List<Index<CRFLabel>> labelIndices, int numClasses)
public static FloatFactorTable[] getCalibratedCliqueTree(float[][] weights, int[][][] data, java.util.List<Index<CRFLabel>> labelIndices, int numClasses)
public void calculate(float[] x)
AbstractCachingDiffFloatFunction
calculate
in class AbstractCachingDiffFloatFunction
public void calculateWeird1(float[] x)