use of edu.cmu.tetrad.algcomparison.score.ConditionalGaussianBicScore in project tetrad by cmu-phil.
the class TestConditionalGaussianSimulation method testBryan.
public void testBryan(String... args) {
Parameters parameters = new Parameters();
parameters.set("numCategoriesToDiscretize", 5);
parameters.set("numRuns", 10);
parameters.set("numMeasures", 100);
parameters.set("avgDegree", 2);
parameters.set("sampleSize", 10000);
parameters.set("minCategories", 2);
parameters.set("maxCategories", 5);
parameters.set("percentDiscrete", 50);
parameters.set("differentGraphs", true);
parameters.set("maxDegree", 5);
parameters.set("maxIndegree", 5);
parameters.set("maxOutdegree", 5);
parameters.set("structurePrior", 1);
parameters.set("fDegree", -1);
parameters.set("discretize", true);
// parameters.set("discretize", true, false);
Statistics statistics = new Statistics();
statistics.add(new AdjacencyPrecision());
statistics.add(new AdjacencyRecall());
statistics.add(new ArrowheadPrecision());
statistics.add(new ArrowheadRecall());
statistics.add(new ElapsedTime());
statistics.setWeight("AHP", 1.0);
statistics.setWeight("AHR", 1.0);
Algorithms algorithms = new Algorithms();
algorithms.add(new Fges(new ConditionalGaussianBicScore()));
Simulations simulations = new Simulations();
simulations.add(new ConditionalGaussianSimulation(new RandomForward()));
Comparison comparison = new Comparison();
comparison.setShowAlgorithmIndices(true);
comparison.setShowSimulationIndices(true);
comparison.setSortByUtility(true);
comparison.setShowUtilities(true);
comparison.setParallelized(false);
comparison.compareFromSimulations("comparison", simulations, algorithms, statistics, parameters);
}
Aggregations