cc.mallet.grmm.util
Class CachingOptimizable.ByBatchGradient
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CachingOptimizable.ByBatchGradient
public CachingOptimizable.ByBatchGradient()
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)