org.encog.neural.error
Interface ErrorFunction
-
- All Known Implementing Classes:
- ATanErrorFunction, CrossEntropyErrorFunction, LinearErrorFunction, OutputErrorFunction
public interface ErrorFunctionAn error function. This is used to calculate the errors for the output layer during propagation training.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidcalculateError(ActivationFunction af, double[] b, double[] a, double[] ideal, double[] actual, double[] error, double derivShift, double significance)Calculate the error.
-
-
-
Method Detail
-
calculateError
void calculateError(ActivationFunction af, double[] b, double[] a, double[] ideal, double[] actual, double[] error, double derivShift, double significance)
Calculate the error.- Parameters:
af- The activation function used at the output layer.b- The number to calculate the derivative of, the number "before" the activation function was applied.a- The number "after" an activation function has been applied.ideal- The ideal values.actual- The actual values.error- The resulting error values.derivShift- The amount to shift af derivativeFunction bysignificance- Weighting to apply to ideal[i] - actual[i]
-
-
DMelt 3.0 © DataMelt by jWork.ORG