|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.ml.train.BasicTraining
org.encog.ml.bayesian.training.TrainBayesian
public class TrainBayesian
Train a Bayesian network.
Constructor Summary | |
---|---|
TrainBayesian(BayesianNetwork theNetwork,
MLDataSet theData,
int theMaximumParents)
Construct a Bayesian trainer. |
|
TrainBayesian(BayesianNetwork theNetwork,
MLDataSet theData,
int theMaximumParents,
BayesianInit theInit,
BayesSearch theSearch,
BayesEstimator theEstimator)
Construct a Bayesian trainer. |
Method Summary | |
---|---|
boolean |
canContinue()
|
BayesianInit |
getInitNetwork()
|
int |
getMaximumParents()
|
MLMethod |
getMethod()
Get the current best machine learning method from the training. |
BayesianNetwork |
getNetwork()
|
BayesSearch |
getSearch()
|
boolean |
isTrainingDone()
|
void |
iteration()
Perform one iteration of training. |
TrainingContinuation |
pause()
Pause the training to continue later. |
void |
resume(TrainingContinuation state)
Resume training. |
void |
setInitNetwork(BayesianInit initNetwork)
Set the network init method. |
Methods inherited from class org.encog.ml.train.BasicTraining |
---|
addStrategy, finishTraining, getError, getImplementationType, getIteration, getStrategies, getTraining, iteration, postIteration, preIteration, setError, setIteration, setTraining |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TrainBayesian(BayesianNetwork theNetwork, MLDataSet theData, int theMaximumParents)
theNetwork
- The network to train.theData
- The data to train.theMaximumParents
- The max number of parents.public TrainBayesian(BayesianNetwork theNetwork, MLDataSet theData, int theMaximumParents, BayesianInit theInit, BayesSearch theSearch, BayesEstimator theEstimator)
theNetwork
- The network to train.theData
- The data to train with.theMaximumParents
- The maximum number of parents.theInit
- How to init the new Bayes network.theSearch
- The search method.theEstimator
- The estimation mehod.Method Detail |
---|
public boolean isTrainingDone()
isTrainingDone
in interface MLTrain
isTrainingDone
in class BasicTraining
public void iteration()
public boolean canContinue()
public TrainingContinuation pause()
public void resume(TrainingContinuation state)
state
- The training continuation object to use to continue.public MLMethod getMethod()
public BayesianNetwork getNetwork()
public int getMaximumParents()
public BayesSearch getSearch()
public BayesianInit getInitNetwork()
public void setInitNetwork(BayesianInit initNetwork)
initNetwork
- The init method.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |