com.penguinwerks.jodene.calculators
Class SSEErrorCalculator

java.lang.Object
  extended bycom.penguinwerks.jodene.ErrorCalculator
      extended bycom.penguinwerks.jodene.calculators.SSEErrorCalculator

public class SSEErrorCalculator
extends ErrorCalculator

A sum of squares error calculator. This calculates the network error based on the sum of squares.

Author:
Paul Hoehne

Constructor Summary
SSEErrorCalculator()
          Default constructor.
 
Method Summary
 double calculateError(java.util.Map expected, java.util.Map actual)
          Calculates the error based on the sum of squares where the total error is equal to the sum of the squares of the differences between the actual and expected values.
 java.lang.String getDefaultName()
          Returns the default name of the sum of squares error calculator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSEErrorCalculator

public SSEErrorCalculator()
Default constructor.

Method Detail

calculateError

public double calculateError(java.util.Map expected,
                             java.util.Map actual)
Calculates the error based on the sum of squares where the total error is equal to the sum of the squares of the differences between the actual and expected values.

Specified by:
calculateError in class ErrorCalculator
Parameters:
expected - The expected values, based on a training example.
actual - The actual values obtained from the network.
Returns:
The error.

getDefaultName

public java.lang.String getDefaultName()
Returns the default name of the sum of squares error calculator

Specified by:
getDefaultName in class ErrorCalculator
Returns:
The default name.