public class TestSetIterationCallback<T extends Classifier> extends Object implements IterationCompletionListener
| Constructor and Description |
|---|
TestSetIterationCallback(EvaluationSplit split,
WeightMapper<T> mapper,
Comparator<Evaluator.EvaluationResult> resultComparison)
Creates a new test set iteration callback instance.
|
TestSetIterationCallback(EvaluationSplit split,
WeightMapper<T> mapper,
Comparator<Evaluator.EvaluationResult> resultComparison,
int evaluationInterval)
Creates a new test set iteration callback instance.
|
| Modifier and Type | Method and Description |
|---|---|
Evaluator.EvaluationResult |
getBestResult() |
de.jungblut.math.DoubleVector |
getBestWeights() |
void |
onIterationFinished(int iteration,
double cost,
de.jungblut.math.DoubleVector currentWeights)
This callback is called from a
AbstractMinimizer when a iteration
of a minimization objective is finished. |
public TestSetIterationCallback(EvaluationSplit split, WeightMapper<T> mapper, Comparator<Evaluator.EvaluationResult> resultComparison, int evaluationInterval)
split - the split to test onmapper - the weight mapper to transform a weight to a classifier.resultComparison - the comparator to compare what result is better and
should be kept.evaluationInterval - how often the result should be evaluated.public TestSetIterationCallback(EvaluationSplit split, WeightMapper<T> mapper, Comparator<Evaluator.EvaluationResult> resultComparison)
split - the split to test onmapper - the weight mapper to transform a weight to a classifier.resultComparison - the comparator to compare what result is better and
should be kept.public void onIterationFinished(int iteration,
double cost,
de.jungblut.math.DoubleVector currentWeights)
IterationCompletionListenerAbstractMinimizer when a iteration
of a minimization objective is finished.onIterationFinished in interface IterationCompletionListeneriteration - the number of the current iteration.cost - the cost at the current iteration.currentWeights - the current optimal weights.public Evaluator.EvaluationResult getBestResult()
public de.jungblut.math.DoubleVector getBestWeights()
Copyright © 2016. All rights reserved.