public final class MeanSquaredError extends Object implements ErrorFunction, Serializable
Constructor and Description |
---|
MeanSquaredError() |
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.
|
public double[] addPatternError(double[] predictedOutput, double[] targetOutput)
ErrorFunction
addPatternError
in interface ErrorFunction
predictedOutput
- actual network outputtargetOutput
- target/desired outputpublic void reset()
ErrorFunction
reset
in interface ErrorFunction
public double getTotalError()
ErrorFunction
getTotalError
in interface ErrorFunction
Copyright © 2019 Neuroph Project. All rights reserved.