|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.mathutil.matrices.hessian.BasicHessian
public abstract class BasicHessian
Some basic code used to calculate Hessian matrixes.
Field Summary | |
---|---|
protected FlatNetwork |
flat
The flat network. |
protected double[] |
gradients
The gradients of the Hessian. |
protected double[][] |
hessian
The Hessian 2d array. |
protected Matrix |
hessianMatrix
The Hessian matrix. |
protected BasicNetwork |
network
The neural network that we would like to train. |
protected double |
sse
The sum of square error. |
protected MLDataSet |
training
The training data that provides the ideal values. |
Constructor Summary | |
---|---|
BasicHessian()
|
Method Summary | |
---|---|
void |
clear()
Clear the Hessian and gradients. |
double[] |
getGradients()
The gradeints. |
double[][] |
getHessian()
|
Matrix |
getHessianMatrix()
|
double |
getSSE()
|
void |
init(BasicNetwork theNetwork,
MLDataSet theTraining)
Init the class. |
void |
updateHessian(double[] d)
Update the Hessian, sum's with what is in the Hessian already. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.encog.mathutil.matrices.hessian.ComputeHessian |
---|
compute |
Field Detail |
---|
protected MLDataSet training
protected BasicNetwork network
protected double sse
protected double[] gradients
protected Matrix hessianMatrix
protected double[][] hessian
protected FlatNetwork flat
Constructor Detail |
---|
public BasicHessian()
Method Detail |
---|
public void init(BasicNetwork theNetwork, MLDataSet theTraining)
init
in interface ComputeHessian
theNetwork
- The neural network to train.theTraining
- The training set to train with.public double[] getGradients()
getGradients
in interface ComputeHessian
public Matrix getHessianMatrix()
getHessianMatrix
in interface ComputeHessian
public double[][] getHessian()
getHessian
in interface ComputeHessian
public void clear()
clear
in interface ComputeHessian
public double getSSE()
getSSE
in interface ComputeHessian
public void updateHessian(double[] d)
d
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |