org.encog.neural.networks.training.lma
Class JacobianChainRule

java.lang.Object
  extended by 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.


Constructor Summary
JacobianChainRule(BasicNetwork network, Indexable indexableTraining)
          Construct the chain rule calculation.
 
Method Summary
 double calculate(double[] weights)
          Calculate the Jacobian matrix.
 double getError()
           
 double[][] getJacobian()
           
 double[] getRowErrors()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JacobianChainRule

public JacobianChainRule(BasicNetwork network,
                         Indexable indexableTraining)
Construct the chain rule calculation.

Parameters:
network - The network to use.
indexableTraining - The training set to use.
Method Detail

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.