|
||||||||||
| 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 double[] |
derivative
The derivatives. |
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 double[] derivative
protected FlatNetwork flat
| Constructor Detail |
|---|
public BasicHessian()
| Method Detail |
|---|
public void init(BasicNetwork theNetwork,
MLDataSet theTraining)
init in interface ComputeHessiantheNetwork - The neural network to train.theTraining - The training set to train with.public double[] getGradients()
getGradients in interface ComputeHessianpublic Matrix getHessianMatrix()
getHessianMatrix in interface ComputeHessianpublic double[][] getHessian()
getHessian in interface ComputeHessianpublic void clear()
clear in interface ComputeHessianpublic double getSSE()
getSSE in interface ComputeHessianpublic void updateHessian(double[] d)
d -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||