public class CRFLogConditionalObjectiveFunctionNoisyLabel extends CRFLogConditionalObjectiveFunction
AbstractStochasticCachingDiffFunction.SamplingMethod| Modifier and Type | Field and Description |
|---|---|
protected double[][] |
errorMatrix |
backgroundSymbol, classIndex, cliquePotentialFunc, CONDENSE, data, DEBUG2, DEBUG3, domainDimension, DROPOUT_PRIOR, E, Ehat, epsilon, featureGrouping, featureVal, HUBER_PRIOR, labelIndices, labels, map, multiThreadGrad, NO_PRIOR, numClasses, parallelE, parallelEhat, prior, QUADRATIC_PRIOR, QUARTIC_PRIOR, rand, sigma, smallConst, TIMED, VERBOSE, weightIndices, weights, windowskipValCalcallIndices, curElement, finiteDifferenceStepSize, gradPerturbed, hasNewVals, HdotV, lastBatch, lastBatchSize, lastElement, lastVBatch, lastXBatch, method, randGenerator, recalculatePrevBatch, returnPreviousValues, sampleMethod, scaleUp, thisBatch, xPerturbedderivative, generator, value| Modifier and Type | Method and Description |
|---|---|
void |
calculate(double[] x)
Calculates both value and partial derivatives at the point x, and save them internally.
|
protected double |
expectedAndEmpiricalCountsAndValueForADoc(double[][] E,
double[][] Ehat,
int docIndex) |
CliquePotentialFunction |
getFunc(int docIndex) |
protected double |
regularGradientAndValue() |
void |
setWeights(double[][] weights) |
applyPrior, calculateStochastic, calculateStochasticGradient, calculateStochasticUpdate, clear2D, combine2DArr, combine2DArr, combine2DArr, combine2DArr, dataDimension, documentExpectedCounts, domainDimension, empiricalCounts, empiricalCountsForADoc, empty2D, expectedCountsAndValueForADoc, expectedCountsAndValueForADoc, expectedCountsForADoc, getCliquePotentialFunction, getCondProbs, getFeatureGrouping, getLabels, getPriorType, getWeightIndices, initial, initial, initial, multiThreadGradient, setFeatureGrouping, to1D, to1D, to1D, to2D, to2D, to2D, to2D, to2D, to2D, valueAt, valueForADoccalculateStochasticGradient, calculateStochasticUpdate, getSample, valueAtclearCache, decrementBatch, derivativeAt, derivativeAt, getBatch, HdotVAt, HdotVAt, HdotVAt, incrementBatch, incrementRandom, lastDerivative, lastValue, scaleUp, valueAt, valueAtcopy, derivativeAt, ensure, getDerivative, gradientCheck, gradientCheck, randomInitial, valueAtpublic CliquePotentialFunction getFunc(int docIndex)
public void setWeights(double[][] weights)
setWeights in class CRFLogConditionalObjectiveFunctionprotected double expectedAndEmpiricalCountsAndValueForADoc(double[][] E,
double[][] Ehat,
int docIndex)
expectedAndEmpiricalCountsAndValueForADoc in class CRFLogConditionalObjectiveFunctionprotected double regularGradientAndValue()
regularGradientAndValue in class CRFLogConditionalObjectiveFunctionpublic void calculate(double[] x)
calculate in class CRFLogConditionalObjectiveFunctionx - The point at which to calculate the function