org.encog.neural.error
Class ATanErrorFunction
- java.lang.Object
-
- org.encog.neural.error.ATanErrorFunction
-
- All Implemented Interfaces:
- ErrorFunction
public class ATanErrorFunction extends java.lang.Object implements ErrorFunction
An ATan based error function. This is often used either with QuickProp or alone. This can improve the training time of a propagation trained neural network.
-
-
Constructor Summary
Constructors Constructor and Description ATanErrorFunction()
-
Method Summary
All Methods Instance Methods Concrete 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
public void calculateError(ActivationFunction af, double[] b, double[] a, double[] ideal, double[] actual, double[] error, double derivShift, double significance)
Calculate the error.- Specified by:
calculateErrorin interfaceErrorFunction- 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