org.encog.mathutil.matrices.hessian
Class HessianCR
- java.lang.Object
-
- org.encog.mathutil.matrices.hessian.BasicHessian
-
- org.encog.mathutil.matrices.hessian.HessianCR
-
- All Implemented Interfaces:
- ComputeHessian, MultiThreadable
public class HessianCR extends BasicHessian implements MultiThreadable
Calculate the Hessian matrix using the chain rule method.
-
-
Constructor Summary
Constructors Constructor and Description HessianCR()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidcompute()Compute the Hessian.intgetThreadCount()voidinit(BasicNetwork theNetwork, MLDataSet theTraining)Init the class.voidsetThreadCount(int numThreads)Set the number of threads.-
Methods inherited from class org.encog.mathutil.matrices.hessian.BasicHessian
clear, getGradients, getHessian, getHessianMatrix, getSSE, updateHessian
-
-
-
-
Method Detail
-
init
public void init(BasicNetwork theNetwork, MLDataSet theTraining)
Init the class.- Specified by:
initin interfaceComputeHessian- Overrides:
initin classBasicHessian- Parameters:
theNetwork- The neural network to train.theTraining- The training set to train with.
-
compute
public void compute()
Compute the Hessian.- Specified by:
computein interfaceComputeHessian
-
setThreadCount
public final void setThreadCount(int numThreads)
Set the number of threads. Specify zero to tell Encog to automatically determine the best number of threads for the processor. If OpenCL is used as the target device, then this value is not used.- Specified by:
setThreadCountin interfaceMultiThreadable- Parameters:
numThreads- The number of threads.
-
getThreadCount
public int getThreadCount()
- Specified by:
getThreadCountin interfaceMultiThreadable- Returns:
- The thread count.
-
-
DMelt 3.0 © DataMelt by jWork.ORG