L
- The type of the labels in the Dataset (one can be passed in to the constructor)F
- The type of the features in the Datasetpublic class AdaptedGaussianPriorObjectiveFunction<L,F> extends LogConditionalObjectiveFunction<L,F>
AbstractStochasticCachingDiffFunction.SamplingMethod
data, dataIterable, dataWeights, derivativeNumerator, featureIndex, labelIndex, labels, numClasses, numFeatures, parallelGradientCalculation, prior, priorDerivative, threads, useSummedConditionalLikelihood, values
skipValCalc
allIndices, curElement, finiteDifferenceStepSize, gradPerturbed, hasNewVals, HdotV, lastBatch, lastBatchSize, lastElement, lastVBatch, lastXBatch, method, randGenerator, recalculatePrevBatch, returnPreviousValues, sampleMethod, scaleUp, thisBatch, xPerturbed
derivative, value
Constructor and Description |
---|
AdaptedGaussianPriorObjectiveFunction(GeneralDataset<L,F> dataset,
LogPrior prior,
double[][] weights) |
Modifier and Type | Method and Description |
---|---|
protected void |
calculate(double[] x)
Calculate the conditional likelihood.
|
protected void |
rvfcalculate(double[] x)
Calculate conditional likelihood for datasets with real-valued features.
|
double[] |
to1D(double[][] x2) |
calculateStochastic, calculateStochasticAlgorithmicDifferentiation, calculateStochasticFiniteDifference, calculateStochasticGradient, calculateStochasticGradientLocal, calculateStochasticUpdate, dataDimension, domainDimension, indexOf, to2D, valueAt
calculateStochasticGradient, calculateStochasticUpdate, getSample, valueAt
clearCache, decrementBatch, derivativeAt, derivativeAt, getBatch, HdotVAt, HdotVAt, HdotVAt, incrementBatch, incrementRandom, initial, lastDerivative, lastValue, scaleUp, valueAt, valueAt
copy, derivativeAt, ensure, getDerivative, gradientCheck, gradientCheck, randomInitial, valueAt
public AdaptedGaussianPriorObjectiveFunction(GeneralDataset<L,F> dataset, LogPrior prior, double[][] weights)
protected void calculate(double[] x)
calculate
in class LogConditionalObjectiveFunction<L,F>
x
- The point at which to calculate the functionprotected void rvfcalculate(double[] x)
LogConditionalObjectiveFunction
rvfcalculate
in class LogConditionalObjectiveFunction<L,F>
public double[] to1D(double[][] x2)