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.SamplingMethoddata, dataIterable, dataWeights, derivativeNumerator, featureIndex, labelIndex, labels, numClasses, numFeatures, prior, priorDerivative, useSummedConditionalLikelihood, valuesskipValCalcallIndices, curElement, finiteDifferenceStepSize, gradPerturbed, hasNewVals, HdotV, lastBatch, lastBatchSize, lastElement, lastVBatch, lastXBatch, method, randGenerator, recalculatePrevBatch, returnPreviousValues, sampleMethod, scaleUp, thisBatch, xPerturbedderivative, generator, 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, valueAtcalculateStochasticGradient, calculateStochasticUpdate, getSample, valueAtclearCache, decrementBatch, derivativeAt, derivativeAt, getBatch, HdotVAt, HdotVAt, HdotVAt, incrementBatch, incrementRandom, initial, lastDerivative, lastValue, scaleUp, valueAt, valueAtcopy, derivativeAt, ensure, getDerivative, gradientCheck, gradientCheck, randomInitial, valueAtpublic 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)
LogConditionalObjectiveFunctionrvfcalculate in class LogConditionalObjectiveFunction<L,F>public double[] to1D(double[][] x2)