public class ParamAndGradientIterationListener extends BaseTrainingListener
Constructor and Description |
---|
ParamAndGradientIterationListener()
Deprecated.
Default constructor for output to console only every iteration, tab delimited
|
ParamAndGradientIterationListener(int iterations,
boolean printHeader,
boolean printMean,
boolean printMinMax,
boolean printMeanAbsValue,
boolean outputToConsole,
boolean outputToFile,
boolean outputToLogger,
File file,
String delimiter)
Deprecated.
Full constructor with all options.
|
Modifier and Type | Method and Description |
---|---|
void |
iterationDone(Model model,
int iteration,
int epoch)
Deprecated.
Event listener for each iteration.
|
onBackwardPass, onEpochEnd, onEpochStart, onForwardPass, onForwardPass, onGradientCalculation
public ParamAndGradientIterationListener()
public ParamAndGradientIterationListener(int iterations, boolean printHeader, boolean printMean, boolean printMinMax, boolean printMeanAbsValue, boolean outputToConsole, boolean outputToFile, boolean outputToLogger, File file, String delimiter)
iterations
- calculate and report values every 'iterations' iterationsprintHeader
- Whether to output a header row (i.e., names for each column)printMean
- Calculate and display the mean of parameters and gradientsprintMinMax
- Calculate and display the min/max of the parameters and gradientsprintMeanAbsValue
- Calculate and display the mean absolute valueoutputToConsole
- If true, display the values to the console (System.out.println())outputToFile
- If true, write the values to a file, one per lineoutputToLogger
- If true, log the valuesfile
- File to write values to. May be null, not used if outputToFile == falsedelimiter
- delimiter (for example, "\t" or "," etc)public void iterationDone(Model model, int iteration, int epoch)
TrainingListener
iterationDone
in interface TrainingListener
iterationDone
in class BaseTrainingListener
model
- the model iteratingiteration
- the iterationCopyright © 2019. All rights reserved.