Class MaxEpochsTerminationCondition

    • Constructor Detail

      • MaxEpochsTerminationCondition

        public MaxEpochsTerminationCondition​(int maxEpochs)
    • Method Detail

      • terminate

        public boolean terminate​(int epochNum,
                                 double score,
                                 boolean minimize)
        Description copied from interface: EpochTerminationCondition
        Should the early stopping training terminate at this epoch, based on the calculated score and the epoch number? Returns true if training should terminated, or false otherwise
        Specified by:
        terminate in interface EpochTerminationCondition
        Parameters:
        epochNum - Number of the last completed epoch (starting at 0)
        score - Score calculate for this epoch
        Returns:
        Whether training should be terminated at this epoch