public class ParamAndGradientIterationListener extends BaseTrainingListener
| Constructor and Description |
|---|
ParamAndGradientIterationListener()
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)
Full constructor with all options.
|
| Modifier and Type | Method and Description |
|---|---|
void |
iterationDone(Model model,
int iteration,
int epoch)
Event listener for each iteration.
|
onBackwardPass, onEpochEnd, onEpochStart, onForwardPass, onForwardPass, onGradientCalculationpublic 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)
TrainingListeneriterationDone in interface TrainingListeneriterationDone in class BaseTrainingListenermodel - the model iteratingiteration - the iterationCopyright © 2018. All rights reserved.