org.encog.mathutil.matrices.hessian
public abstract class BasicHessian extends Object implements ComputeHessian
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
BasicHessian() |
Modifier and Type | Method and Description |
---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compute
protected MLDataSet training
protected BasicNetwork network
protected double sse
protected double[] gradients
protected Matrix hessianMatrix
protected double[][] hessian
protected FlatNetwork flat
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
- Copyright © 2014. All Rights Reserved.