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)
ErrorFunctionaddPatternError in interface ErrorFunctionpredictedOutput - actual network outputtargetOutput - target/desired outputpublic void reset()
ErrorFunctionreset in interface ErrorFunctionpublic double getTotalError()
ErrorFunctiongetTotalError in interface ErrorFunctionCopyright © 2019 Neuroph Project. All rights reserved.