cc.mallet.optimize
Interface OptimizerEvaluator.ByBatchGradient

Enclosing interface:
OptimizerEvaluator

public static interface OptimizerEvaluator.ByBatchGradient


Method Summary
 boolean evaluate(Optimizable.ByBatchGradient maxable, int iter, int sampleId, int numSamples, int[] sampleAssns)
          Performs some operation at the end of every batch.
 

Method Detail

evaluate

boolean evaluate(Optimizable.ByBatchGradient maxable,
                 int iter,
                 int sampleId,
                 int numSamples,
                 int[] sampleAssns)
Performs some operation at the end of every batch.

Parameters:
maxable - Function that's being optimized.
iter - Number of just-finished iteration.
sampleId - Number of just-finished sample.
numSamples - Number of samples total.
sampleAssns - Assignments of instances to samples
Returns:
true if optimization should continue.