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, window
skipValCalc
allIndices, curElement, finiteDifferenceStepSize, gradPerturbed, hasNewVals, HdotV, lastBatch, lastBatchSize, lastElement, lastVBatch, lastXBatch, method, randGenerator, recalculatePrevBatch, returnPreviousValues, sampleMethod, scaleUp, thisBatch, xPerturbed
derivative, 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, valueForADoc
calculateStochasticGradient, calculateStochasticUpdate, getSample, valueAt
clearCache, decrementBatch, derivativeAt, derivativeAt, getBatch, HdotVAt, HdotVAt, HdotVAt, incrementBatch, incrementRandom, lastDerivative, lastValue, scaleUp, valueAt, valueAt
copy, derivativeAt, ensure, getDerivative, gradientCheck, gradientCheck, randomInitial, valueAt
public CliquePotentialFunction getFunc(int docIndex)
public void setWeights(double[][] weights)
setWeights
in class CRFLogConditionalObjectiveFunction
protected double expectedAndEmpiricalCountsAndValueForADoc(double[][] E, double[][] Ehat, int docIndex)
expectedAndEmpiricalCountsAndValueForADoc
in class CRFLogConditionalObjectiveFunction
protected double regularGradientAndValue()
regularGradientAndValue
in class CRFLogConditionalObjectiveFunction
public void calculate(double[] x)
calculate
in class CRFLogConditionalObjectiveFunction
x
- The point at which to calculate the function