org.encog.neural.networks.training.concurrent.jobs
Class TrainingJob
- java.lang.Object
-
- org.encog.neural.networks.training.concurrent.jobs.TrainingJob
-
-
Constructor Summary
Constructors Constructor and Description TrainingJob(BasicNetwork network, MLDataSet training, boolean loadToMemory)Construct a training job.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description abstract voidcreateTrainer(boolean singleThreaded)Create a trainer to use.java.lang.ThrowablegetError()BasicNetworkgetNetwork()java.util.List<Strategy>getStrategies()MLTraingetTrain()MLDataSetgetTraining()booleanisLoadToMemory()voidsetError(java.lang.Throwable error)voidsetLoadToMemory(boolean loadToMemory)voidsetNetwork(BasicNetwork network)voidsetTrain(MLTrain train)voidsetTraining(MLDataSet training)booleanshouldContinue()
-
-
-
Constructor Detail
-
TrainingJob
public TrainingJob(BasicNetwork network, MLDataSet training, boolean loadToMemory)
Construct a training job.- Parameters:
network- The network to train.training- The training data to use.loadToMemory- True, if binary data should be loaded to memory.
-
-
Method Detail
-
createTrainer
public abstract void createTrainer(boolean singleThreaded)
Create a trainer to use.- Parameters:
singleThreaded- Whether training is single threaded
-
getError
public java.lang.Throwable getError()
- Returns:
- the error
-
getNetwork
public BasicNetwork getNetwork()
- Returns:
- the network
-
getStrategies
public java.util.List<Strategy> getStrategies()
- Returns:
- the strategies
-
getTrain
public MLTrain getTrain()
- Returns:
- the train
-
getTraining
public MLDataSet getTraining()
- Returns:
- the training
-
isLoadToMemory
public boolean isLoadToMemory()
- Returns:
- the loadToMemory
-
setError
public void setError(java.lang.Throwable error)
- Parameters:
error- the error to set
-
setLoadToMemory
public void setLoadToMemory(boolean loadToMemory)
- Parameters:
loadToMemory- the loadToMemory to set
-
setNetwork
public void setNetwork(BasicNetwork network)
- Parameters:
network- the network to set
-
setTrain
public void setTrain(MLTrain train)
- Parameters:
train- the train to set
-
setTraining
public void setTraining(MLDataSet training)
- Parameters:
training- the training to set
-
shouldContinue
public boolean shouldContinue()
- Returns:
- True, if training should continue.
-
-
DMelt 3.0 © DataMelt by jWork.ORG