org.neuroph.core.learning.error
Class MeanSquaredError
- java.lang.Object
-
- org.neuroph.core.learning.error.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.doublegetTotalError()Return total network errorvoidreset()Sets total error and pattern count to zero.
-
-
-
Method Detail
-
addPatternError
public double[] addPatternError(double[] predictedOutput, double[] targetOutput)Description copied from interface:ErrorFunctionCalculates and adds pattern error for the given predicted and target output vector and adds it to total error.- Specified by:
addPatternErrorin interfaceErrorFunction- Parameters:
predictedOutput- actual network outputtargetOutput- target/desired output- Returns:
- returns pattern error vector
-
reset
public void reset()
Description copied from interface:ErrorFunctionSets total error and pattern count to zero.- Specified by:
resetin interfaceErrorFunction
-
getTotalError
public double getTotalError()
Description copied from interface:ErrorFunctionReturn total network error- Specified by:
getTotalErrorin interfaceErrorFunction- Returns:
- total network error
-
-
DMelt 3.0 © DataMelt by jWork.ORG