org.encog.ml.bayesian.training
public class TrainBayesian extends BasicTraining
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
addStrategy, finishTraining, getError, getImplementationType, getIteration, getStrategies, getTraining, iteration, postIteration, preIteration, setError, setIteration, setTrainingpublic 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.public boolean isTrainingDone()
isTrainingDone in interface MLTrainisTrainingDone in class BasicTrainingpublic 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.Copyright © 2014. All Rights Reserved.