public class ErrorCountingCallback extends Object implements IterationFinishedCallback, PassFinishedCallback
| Constructor and Description |
|---|
ErrorCountingCallback() |
| Modifier and Type | Method and Description |
|---|---|
void |
onIterationFinished(int pass,
long iteration,
double cost,
de.jungblut.math.DoubleVector currentWeights,
boolean validation)
This callback when a pass over an example in a stream of a minimization
objective is finished.
|
boolean |
onPassFinished(int pass,
long iteration,
double cost,
de.jungblut.math.DoubleVector currentWeights)
This callback when a pass over a stream of a minimization objective is
finished.
|
public void onIterationFinished(int pass,
long iteration,
double cost,
de.jungblut.math.DoubleVector currentWeights,
boolean validation)
IterationFinishedCallbackonIterationFinished in interface IterationFinishedCallbackpass - the number of the current pass.iteration - the number of the current iteration.cost - the cost at the current iteration.currentWeights - the current optimal weights.validation - true if this iteration was used for validation.public boolean onPassFinished(int pass,
long iteration,
double cost,
de.jungblut.math.DoubleVector currentWeights)
PassFinishedCallbackonPassFinished in interface PassFinishedCallbackpass - the number of the current pass.iteration - the number of the current iteration.cost - the validation error after the current pass. If no hold-out
validation was chosen, it will be zero.currentWeights - the current optimal weights.Copyright © 2015. All rights reserved.