Class CollectScoresIterationListener

    • Constructor Detail

      • CollectScoresIterationListener

        public CollectScoresIterationListener()
        Constructor for collecting scores with default saving frequency of 1
      • CollectScoresIterationListener

        public CollectScoresIterationListener​(int frequency)
        Constructor for collecting scores with the specified frequency.
        Parameters:
        frequency - Frequency with which to collect/save scores
    • Method Detail

      • iterationDone

        public void iterationDone​(Model model,
                                  int iteration,
                                  int epoch)
        Description copied from interface: TrainingListener
        Event listener for each iteration. Called once, after each parameter update has ocurred while training the network
        Specified by:
        iterationDone in interface TrainingListener
        Overrides:
        iterationDone in class BaseTrainingListener
        Parameters:
        model - the model iterating
        iteration - the iteration
      • exportScores

        public void exportScores​(OutputStream outputStream)
                          throws IOException
        Export the scores in tab-delimited (one per line) UTF-8 format.
        Throws:
        IOException
      • exportScores

        public void exportScores​(OutputStream outputStream,
                                 String delimiter)
                          throws IOException
        Export the scores in delimited (one per line) UTF-8 format with the specified delimiter
        Parameters:
        outputStream - Stream to write to
        delimiter - Delimiter to use
        Throws:
        IOException
      • exportScores

        public void exportScores​(File file)
                          throws IOException
        Export the scores to the specified file in delimited (one per line) UTF-8 format, tab delimited
        Parameters:
        file - File to write to
        Throws:
        IOException
      • exportScores

        public void exportScores​(File file,
                                 String delimiter)
                          throws IOException
        Export the scores to the specified file in delimited (one per line) UTF-8 format, using the specified delimiter
        Parameters:
        file - File to write to
        delimiter - Delimiter to use for writing scores
        Throws:
        IOException