Documentation of 'org.neuroph.core.learning.error.ErrorFunction' Java class
ErrorFunction
org.neuroph.core.learning.error

Interface ErrorFunction

  • All Known Implementing Classes:
    CrossEntropyError, MeanSquaredError


    public interface ErrorFunction
    Interface for calculating total network error during the learning. Custom error types can be implemented.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      double[] addPatternError(double[] predictedOutput, double[] targetOutput)
      Calculates and adds pattern error for the given predicted and target output vector and adds it to total error.
      double getTotalError()
      Return total network error
      void reset()
      Sets total error and pattern count to zero.
    • Method Detail

      • getTotalError

        double getTotalError()
        Return total network error
        Returns:
        total network error
      • addPatternError

        double[] addPatternError(double[] predictedOutput,
                                 double[] targetOutput)
        Calculates and adds pattern error for the given predicted and target output vector and adds it to total error.
        Parameters:
        predictedOutput - actual network output
        targetOutput - target/desired output
        Returns:
        returns pattern error vector
      • reset

        void reset()
        Sets total error and pattern count to zero.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.