org.encog.ml.bayesian.training.estimator
Class SimpleEstimator
- java.lang.Object
-
- org.encog.ml.bayesian.training.estimator.SimpleEstimator
-
- All Implemented Interfaces:
- BayesEstimator
public class SimpleEstimator extends java.lang.Object implements BayesEstimator
A simple probability estimator.
-
-
Constructor Summary
Constructors Constructor and Description SimpleEstimator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublecalculateProbability(BayesianEvent event, int result, int[] args)Calculate the probability.voidinit(TrainBayesian theTrainer, BayesianNetwork theNetwork, MLDataSet theData)Init the estimator.booleaniteration()Perform an iteration.
-
-
-
Method Detail
-
init
public void init(TrainBayesian theTrainer, BayesianNetwork theNetwork, MLDataSet theData)
Init the estimator.- Specified by:
initin interfaceBayesEstimator- Parameters:
theTrainer- The trainer.theNetwork- The network.theData- The data.
-
calculateProbability
public double calculateProbability(BayesianEvent event, int result, int[] args)
Calculate the probability.- Parameters:
event- The event.result- The result.args- The arguments.- Returns:
- The probability.
-
iteration
public boolean iteration()
Perform an iteration.- Specified by:
iterationin interfaceBayesEstimator- Returns:
- True, if we should contune.
-
-
DMelt 3.0 © DataMelt by jWork.ORG