public class ShiftParamsLogisticObjectiveFunction extends AbstractCachingDiffFunction implements HasRegularizerParamRange
derivative, value
Constructor and Description |
---|
ShiftParamsLogisticObjectiveFunction(int[][] data,
double[][] dataValues,
int[][] labels,
int numClasses,
int numFeatures,
int numL2Parameters,
LogPrior prior) |
Modifier and Type | Method and Description |
---|---|
protected void |
calculate(double[] thetasArray)
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
|
java.util.Set<java.lang.Integer> |
getRegularizerParamRange(double[] x) |
clearCache, copy, derivativeAt, ensure, getDerivative, gradientCheck, gradientCheck, initial, lastValue, randomInitial, valueAt
public ShiftParamsLogisticObjectiveFunction(int[][] data, double[][] dataValues, int[][] labels, int numClasses, int numFeatures, int numL2Parameters, LogPrior prior)
public int domainDimension()
Function
domainDimension
in interface Function
protected void calculate(double[] thetasArray)
AbstractCachingDiffFunction
calculate
in class AbstractCachingDiffFunction
thetasArray
- The point at which to calculate the functionpublic java.util.Set<java.lang.Integer> getRegularizerParamRange(double[] x)
getRegularizerParamRange
in interface HasRegularizerParamRange