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, waitcomputeprotected 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 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 - Copyright © 2014. All Rights Reserved.