public class CollectScoresIterationListener extends BaseTrainingListener
| Modifier and Type | Class and Description |
|---|---|
static class |
CollectScoresIterationListener.ScoreStat |
| Constructor and Description |
|---|
CollectScoresIterationListener()
Constructor for collecting scores with default saving frequency of 1
|
CollectScoresIterationListener(int frequency)
Constructor for collecting scores with the specified frequency.
|
| Modifier and Type | Method and Description |
|---|---|
void |
exportScores(File file)
Export the scores to the specified file in delimited (one per line) UTF-8 format, tab delimited
|
void |
exportScores(File file,
String delimiter)
Export the scores to the specified file in delimited (one per line) UTF-8 format, using the specified delimiter
|
void |
exportScores(OutputStream outputStream)
Export the scores in tab-delimited (one per line) UTF-8 format.
|
void |
exportScores(OutputStream outputStream,
String delimiter)
Export the scores in delimited (one per line) UTF-8 format with the specified delimiter
|
CollectScoresIterationListener.ScoreStat |
getScoreVsIter() |
void |
iterationDone(Model model,
int iteration,
int epoch)
Event listener for each iteration.
|
onBackwardPass, onEpochEnd, onEpochStart, onForwardPass, onForwardPass, onGradientCalculationpublic CollectScoresIterationListener()
public CollectScoresIterationListener(int frequency)
frequency - Frequency with which to collect/save scorespublic void iterationDone(Model model, int iteration, int epoch)
TrainingListeneriterationDone in interface TrainingListeneriterationDone in class BaseTrainingListenermodel - the model iteratingiteration - the iterationpublic CollectScoresIterationListener.ScoreStat getScoreVsIter()
public void exportScores(OutputStream outputStream) throws IOException
IOExceptionpublic void exportScores(OutputStream outputStream, String delimiter) throws IOException
outputStream - Stream to write todelimiter - Delimiter to useIOExceptionpublic void exportScores(File file) throws IOException
file - File to write toIOExceptionpublic void exportScores(File file, String delimiter) throws IOException
file - File to write todelimiter - Delimiter to use for writing scoresIOExceptionCopyright © 2021. All rights reserved.