public class RegressionValidationCallback extends Object implements ValidationFinishedCallback, PassFinishedCallback
| Constructor and Description |
|---|
RegressionValidationCallback(RegressionLearner learner) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
onValidationFinished(int pass,
long iteration,
double cost,
de.jungblut.math.DoubleVector currentWeights,
de.jungblut.online.ml.FeatureOutcomePair pair)
This callback when a pass over an example in a stream of a minimization
objective is finished.
|
public RegressionValidationCallback(RegressionLearner learner)
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.public void onValidationFinished(int pass,
long iteration,
double cost,
de.jungblut.math.DoubleVector currentWeights,
de.jungblut.online.ml.FeatureOutcomePair pair)
ValidationFinishedCallbackonValidationFinished in interface ValidationFinishedCallbackpass - 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.Copyright © 2015. All rights reserved.