|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.engine.network.train.prop.TrainFlatNetworkOpenCL
public class TrainFlatNetworkOpenCL
Train a flat network using OpenCL.
| Field Summary | |
|---|---|
static int |
LEARN_BPROP
Learn backpropagation. |
static int |
LEARN_MANHATTAN
Learn Manhattan update rule. |
static int |
LEARN_RPROP
Learn RPROP. |
| Constructor Summary | |
|---|---|
TrainFlatNetworkOpenCL(FlatNetwork network,
EngineDataSet training,
OpenCLTrainingProfile profile)
Train a flat network multithreaded. |
|
| Method Summary | |
|---|---|
void |
finishTraining()
Training is to stop, free any resources. |
double |
getError()
|
int |
getIteration()
|
double[] |
getLastGradient()
|
double |
getLearningRate()
|
int |
getLearningType()
|
double |
getMaxStep()
|
double |
getMomentum()
|
FlatNetwork |
getNetwork()
|
int |
getNumThreads()
|
EngineDataSet |
getTraining()
|
double[] |
getUpdateValues()
|
void |
iteration()
Perform one training iteration. |
void |
iteration(int iterations)
Perform one training iteration. |
void |
learnBPROP(double learningRate,
double momentum)
Learn using backpropagation. |
void |
learnManhattan(double learningRate)
Learn using the Manhattan update rule. |
void |
learnRPROP()
Learn using RPROP. |
void |
learnRPROP(double initialUpdate,
double maxStep)
Learn using RPROP with a custom initial update and max step. |
void |
setIteration(int iteration)
Set the iteration. |
void |
setNumThreads(int numThreads)
Set the number of threads to use. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int LEARN_RPROP
public static final int LEARN_BPROP
public static final int LEARN_MANHATTAN
| Constructor Detail |
|---|
public TrainFlatNetworkOpenCL(FlatNetwork network,
EngineDataSet training,
OpenCLTrainingProfile profile)
network - The network to train.training - The training data to use.profile - The OpenCL training profile.| Method Detail |
|---|
public void finishTraining()
finishTraining in interface TrainFlatNetworkpublic double getError()
getError in interface TrainFlatNetworkpublic int getIteration()
getIteration in interface TrainFlatNetworkpublic double[] getLastGradient()
public double getLearningRate()
public int getLearningType()
public double getMaxStep()
public double getMomentum()
public FlatNetwork getNetwork()
getNetwork in interface TrainFlatNetworkpublic int getNumThreads()
getNumThreads in interface TrainFlatNetworkpublic EngineDataSet getTraining()
getTraining in interface TrainFlatNetworkpublic double[] getUpdateValues()
public void iteration()
iteration in interface TrainFlatNetworkpublic void iteration(int iterations)
iteration in interface TrainFlatNetwork
public void learnBPROP(double learningRate,
double momentum)
learningRate - The learning rate.momentum - The momentum.public void learnManhattan(double learningRate)
learningRate - The learning rate.public void learnRPROP()
public void learnRPROP(double initialUpdate,
double maxStep)
initialUpdate - The initial update value.maxStep - The max step.public void setIteration(int iteration)
setIteration in interface TrainFlatNetworkiteration - The iteration.public void setNumThreads(int numThreads)
setNumThreads in interface TrainFlatNetworknumThreads - The number of threads to use.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||