public class BiasedLogConditionalObjectiveFunction extends AbstractCachingDiffFunction
Modifier and Type | Field and Description |
---|---|
protected int[][] |
data |
protected int[] |
labels |
protected int |
numClasses |
protected int |
numFeatures |
protected LogPrior |
prior |
derivative, value
Constructor and Description |
---|
BiasedLogConditionalObjectiveFunction(GeneralDataset<?,?> dataset,
double[][] confusionMatrix) |
BiasedLogConditionalObjectiveFunction(GeneralDataset<?,?> dataset,
double[][] confusionMatrix,
LogPrior prior) |
BiasedLogConditionalObjectiveFunction(int numFeatures,
int numClasses,
int[][] data,
int[] labels,
double[][] confusionMatrix) |
BiasedLogConditionalObjectiveFunction(int numFeatures,
int numClasses,
int[][] data,
int[] labels,
double[][] confusionMatrix,
LogPrior prior) |
Modifier and Type | Method and Description |
---|---|
protected void |
calculate(double[] x)
Calculate the value at x and the derivative
and save them in the respective fields.
|
int |
domainDimension()
Returns the number of dimensions in the function's domain
|
protected int |
indexOf(int f,
int c) |
void |
setPrior(LogPrior prior) |
double[][] |
to2D(double[] x) |
clearCache, copy, derivativeAt, ensure, getDerivative, gradientCheck, gradientCheck, initial, lastValue, randomInitial, valueAt
protected LogPrior prior
protected int numFeatures
protected int numClasses
protected int[][] data
protected int[] labels
public BiasedLogConditionalObjectiveFunction(GeneralDataset<?,?> dataset, double[][] confusionMatrix)
public BiasedLogConditionalObjectiveFunction(GeneralDataset<?,?> dataset, double[][] confusionMatrix, LogPrior prior)
public BiasedLogConditionalObjectiveFunction(int numFeatures, int numClasses, int[][] data, int[] labels, double[][] confusionMatrix)
public BiasedLogConditionalObjectiveFunction(int numFeatures, int numClasses, int[][] data, int[] labels, double[][] confusionMatrix, LogPrior prior)
public void setPrior(LogPrior prior)
public int domainDimension()
Function
protected int indexOf(int f, int c)
public double[][] to2D(double[] x)
protected void calculate(double[] x)
AbstractCachingDiffFunction
calculate
in class AbstractCachingDiffFunction
x
- The point at which to calculate the function