public class OutputLayerTrainingEvaluator extends Object implements TrainingEvaluator
Modifier and Type | Class and Description |
---|---|
static class |
OutputLayerTrainingEvaluator.Builder |
Constructor and Description |
---|
OutputLayerTrainingEvaluator(BaseMultiLayerNetwork network,
double patience,
double patienceIncrease,
double bestLoss,
int validationEpochs,
int miniBatchSize,
org.nd4j.linalg.dataset.DataSet testSet,
double improvementThreshold) |
Modifier and Type | Method and Description |
---|---|
double |
bestLoss()
The best validation loss so far
|
double |
improvementThreshold() |
int |
miniBatchSize() |
double |
patience() |
double |
patienceIncrease()
Amount patience should be increased when a new best threshold is hit
|
boolean |
shouldStop(int epoch)
Whether to terminate or not
|
int |
validationEpochs()
The number of epochs to test on
|
public OutputLayerTrainingEvaluator(BaseMultiLayerNetwork network, double patience, double patienceIncrease, double bestLoss, int validationEpochs, int miniBatchSize, org.nd4j.linalg.dataset.DataSet testSet, double improvementThreshold)
public boolean shouldStop(int epoch)
shouldStop
in interface TrainingEvaluator
epoch
- the current epochpublic double patienceIncrease()
patienceIncrease
in interface TrainingEvaluator
public double improvementThreshold()
improvementThreshold
in interface TrainingEvaluator
public double patience()
patience
in interface TrainingEvaluator
public double bestLoss()
bestLoss
in interface TrainingEvaluator
public int validationEpochs()
validationEpochs
in interface TrainingEvaluator
public int miniBatchSize()
miniBatchSize
in interface TrainingEvaluator
Copyright © 2014. All rights reserved.