Package edu.cmu.tetrad.bayes
Class FactoredBayesStructuralEM
java.lang.Object
edu.cmu.tetrad.bayes.FactoredBayesStructuralEM
Implements the procedure Factored-Bayesian-SEM found on page 6 of "The Bayesian Structural EM Algorithm" by Nir Friedman.> 0
The initial implementation simplifies the algorithm somewhat by computing the score of each model by using the BdeMetric score, which is implemented in the bayes package of Tetrad-4.2.> 0
- Version:
- $Id: $Id
- Author:
- Frank Wimberly, Robert Tillman (changes since 5-12-2008)
-
Constructor Summary
ConstructorsConstructorDescriptionFactoredBayesStructuralEM
(DataSet dataSet, BayesPm bayesPmM0) Constructor for FactoredBayesStructuralEM. -
Method Summary
Modifier and TypeMethodDescriptionGetter for the fielddataSet
.iterate()
This iterate2 method also uses BdeMetricCache but it uses the factorScoreMD method which can handle missing data and latent variables.maximization
(double tolerance) This method allows specification of the tolerance parameter used in Bayes EM estimation.void
scoreTest.
-
Constructor Details
-
FactoredBayesStructuralEM
-
-
Method Details
-
maximization
-
iterate
This iterate2 method also uses BdeMetricCache but it uses the factorScoreMD method which can handle missing data and latent variables. Ths method iteratively score models and finds that which contains the graph of the highest scoring model (via its BaysPm) as well as parameters which yield the best score given the dataset by using the EmBayesEstimator class.- Returns:
- the instantiated Bayes net (BayesIm)
-
scoreTest
public void scoreTest()scoreTest.
-
getDataSet
-