cc.mallet.grmm.util
Class CachingOptimizable.ByBatchGradient

java.lang.Object
  extended by cc.mallet.grmm.util.CachingOptimizable.ByBatchGradient
All Implemented Interfaces:
Optimizable, Optimizable.ByBatchGradient
Enclosing class:
CachingOptimizable

public abstract static class CachingOptimizable.ByBatchGradient
extends java.lang.Object
implements Optimizable.ByBatchGradient


Nested Class Summary
 
Nested classes/interfaces inherited from interface cc.mallet.optimize.Optimizable
Optimizable.ByBatchGradient, Optimizable.ByCombiningBatchGradient, Optimizable.ByGISUpdate, Optimizable.ByGradient, Optimizable.ByGradientValue, Optimizable.ByHessian, Optimizable.ByValue, Optimizable.ByVotedPerceptron
 
Constructor Summary
CachingOptimizable.ByBatchGradient()
           
 
Method Summary
protected abstract  void computeBatchGradient(double[] buffer, int batchIndex, int[] batchAssignments)
           
protected abstract  double computeBatchValue(int batchIndex, int[] batchAssignments)
           
 double getBatchValue(int batchIndex, int[] batchAssignments)
           
 void getBatchValueGradient(double[] buffer, int batchIndex, int[] batchAssignments)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface cc.mallet.optimize.Optimizable
getNumParameters, getParameter, getParameters, setParameter, setParameters
 

Constructor Detail

CachingOptimizable.ByBatchGradient

public CachingOptimizable.ByBatchGradient()
Method Detail

getBatchValueGradient

public void getBatchValueGradient(double[] buffer,
                                  int batchIndex,
                                  int[] batchAssignments)
Specified by:
getBatchValueGradient in interface Optimizable.ByBatchGradient

getBatchValue

public double getBatchValue(int batchIndex,
                            int[] batchAssignments)
Specified by:
getBatchValue in interface Optimizable.ByBatchGradient

computeBatchValue

protected abstract double computeBatchValue(int batchIndex,
                                            int[] batchAssignments)

computeBatchGradient

protected abstract void computeBatchGradient(double[] buffer,
                                             int batchIndex,
                                             int[] batchAssignments)