|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.encog.util.concurrency.job.ConcurrentJob
org.encog.neural.prune.PruneIncremental
public class PruneIncremental
This class is used to help determine the optimal configuration for the hidden layers of a neural network. It can accept a pattern, which specifies the type of neural network to create, and a list of the maximum and minimum hidden layer neurons. It will then attempt to train the neural network at all configurations and see which hidden neuron counts work the best.
| Constructor Summary | |
|---|---|
PruneIncremental(NeuralDataSet training,
NeuralNetworkPattern pattern,
int iterations,
StatusReportable report)
Construct an object to determine the optimal number of hidden layers and neurons for the specified training data and pattern. |
|
| Method Summary | |
|---|---|
void |
addHiddenLayer(int min,
int max)
Add a hidden layer's min and max. |
BasicNetwork |
getBestNetwork()
|
java.util.List<HiddenLayerParams> |
getHidden()
|
int |
getIterations()
|
NeuralNetworkPattern |
getPattern()
|
NeuralDataSet |
getTraining()
|
int |
loadWorkload()
Get the next workload. |
static java.lang.String |
networkToString(BasicNetwork network)
Format the network as a human readable string that lists the hidden layers. |
void |
performJobUnit(JobUnitContext context)
Perform an individual job unit, which is a single network to train and evaluate. |
void |
process()
Begin the prune process. |
java.lang.Object |
requestNextTask()
Request the next task. |
| Methods inherited from class org.encog.util.concurrency.job.ConcurrentJob |
|---|
reportStatus |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PruneIncremental(NeuralDataSet training,
NeuralNetworkPattern pattern,
int iterations,
StatusReportable report)
training - The training data to use.pattern - The network pattern to use to solve this data.iterations - How many iterations to try per network.report - Object used to report status to.| Method Detail |
|---|
public static java.lang.String networkToString(BasicNetwork network)
network - The network to format.
public void addHiddenLayer(int min,
int max)
min - The minimum number of neurons for this layer.max - The maximum number of neurons for this layer.public BasicNetwork getBestNetwork()
public java.util.List<HiddenLayerParams> getHidden()
public int getIterations()
public NeuralNetworkPattern getPattern()
public NeuralDataSet getTraining()
public int loadWorkload()
loadWorkload in class ConcurrentJobpublic void performJobUnit(JobUnitContext context)
performJobUnit in class ConcurrentJobcontext - Contains information about the job unit.public void process()
process in class ConcurrentJobpublic java.lang.Object requestNextTask()
requestNextTask in class ConcurrentJob
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||