org.encog.neural.networks.training.lma
Class JacobianChainRule
java.lang.Object
org.encog.neural.networks.training.lma.JacobianChainRule
- All Implemented Interfaces:
- ComputeJacobian
public class JacobianChainRule
- extends Object
- implements ComputeJacobian
Calculate the Jacobian using the chain rule.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JacobianChainRule
public JacobianChainRule(BasicNetwork network,
Indexable indexableTraining)
- Construct the chain rule calculation.
- Parameters:
network - The network to use.indexableTraining - The training set to use.
calculate
public double calculate(double[] weights)
- Calculate the Jacobian matrix.
- Specified by:
calculate in interface ComputeJacobian
- Parameters:
weights - The weights for the neural network.
- Returns:
- The sum squared of the weights.
getError
public double getError()
- Returns:
- The sum squared errors.
getJacobian
public double[][] getJacobian()
- Specified by:
getJacobian in interface ComputeJacobian
- Returns:
- The Jacobian matrix.
getRowErrors
public double[] getRowErrors()
- Specified by:
getRowErrors in interface ComputeJacobian
- Returns:
- The errors for each row of the Jacobian.
Copyright © 2011. All Rights Reserved.