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

Class MeanSquaredError

  • All Implemented Interfaces:
    java.io.Serializable, ErrorFunction


    public final class MeanSquaredError
    extends java.lang.Object
    implements ErrorFunction, java.io.Serializable
    Commonly used mean squared error
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      MeanSquaredError() 
    • Method Summary

      All Methods Instance Methods Concrete 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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MeanSquaredError

        public MeanSquaredError()
    • Method Detail

      • addPatternError

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

        public void reset()
        Description copied from interface: ErrorFunction
        Sets total error and pattern count to zero.
        Specified by:
        reset in interface ErrorFunction
      • getTotalError

        public double getTotalError()
        Description copied from interface: ErrorFunction
        Return total network error
        Specified by:
        getTotalError in interface ErrorFunction
        Returns:
        total network error

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.