Documentation of 'org.encog.neural.freeform.training.FreeformPropagationTraining' Java class
FreeformPropagationTraining
org.encog.neural.freeform.training

Class FreeformPropagationTraining

    • Field Detail

      • FLAT_SPOT_CONST

        public static final double FLAT_SPOT_CONST
        The constant to use to fix the flat spot problem.
        See Also:
        Constant Field Values
    • Constructor Detail

      • FreeformPropagationTraining

        public FreeformPropagationTraining()
        Don't use this constructor, it is for serialization only.
      • FreeformPropagationTraining

        public FreeformPropagationTraining(FreeformNetwork theNetwork,
                                           MLDataSet theTraining)
        Construct the trainer.
        Parameters:
        theNetwork - The network to train.
        theTraining - The training data.
    • Method Detail

      • canContinue

        public boolean canContinue()
        Specified by:
        canContinue in interface MLTrain
        Returns:
        True if the training can be paused, and later continued.
      • finishTraining

        public void finishTraining()
        Should be called after training has completed and the iteration method will not be called any further.
        Specified by:
        finishTraining in interface MLTrain
        Overrides:
        finishTraining in class BasicTraining
      • getError

        public double getError()
        Specified by:
        getError in interface MLTrain
        Overrides:
        getError in class BasicTraining
        Returns:
        Returns the training error. This value is calculated as the training data is evaluated by the iteration function. This has two important ramifications. First, the value returned by getError() is meaningless prior to a call to iteration. Secondly, the error is calculated BEFORE training is applied by the call to iteration. The timing of the error calculation is done for performance reasons.
      • getMethod

        public MLMethod getMethod()
        Get the current best machine learning method from the training.
        Specified by:
        getMethod in interface MLTrain
        Returns:
        The best machine learning method.
      • isFixFlatSopt

        public boolean isFixFlatSopt()
        Returns:
        True, if we are fixing the flat spot problem.
      • iteration

        public void iteration()
        Perform one iteration of training.
        Specified by:
        iteration in interface MLTrain
      • iteration

        public void iteration(int count)
        Perform the specified number of training iterations. This is a basic implementation that just calls iteration the specified number of times. However, some training methods, particularly with the GPU, benefit greatly by calling with higher numbers than 1.
        Specified by:
        iteration in interface MLTrain
        Overrides:
        iteration in class BasicTraining
        Parameters:
        count - The number of training iterations.
      • setError

        public void setError(double theError)
        Specified by:
        setError in interface MLTrain
        Overrides:
        setError in class BasicTraining
        Parameters:
        theError - Set the current error rate. This is usually used by training strategies.
      • setFixFlatSopt

        public void setFixFlatSopt(boolean fixFlatSopt)
        Set if we should fix the flat spot problem.
        Parameters:
        fixFlatSopt - True, if we should fix the flat spot problem.
      • setIteration

        public void setIteration(int iteration)
        Set the current training iteration.
        Specified by:
        setIteration in interface MLTrain
        Overrides:
        setIteration in class BasicTraining
        Parameters:
        iteration - the iteration to set
      • getBatchSize

        public int getBatchSize()
        Returns:
        The batch size.
      • setBatchSize

        public void setBatchSize(int batchSize)
        Set the batch size.
        Parameters:
        batchSize - The batch size.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.