use of edu.cmu.tetrad.algcomparison.algorithm.Algorithms in project tetrad by cmu-phil.
the class TimeoutComparisonTest method testTimeoutComparison.
/**
* Test of setComparisonGraph method, of class TimeoutComparison.
*
* @throws IOException
*/
@Ignore
@Test
public void testTimeoutComparison() throws IOException {
Parameters parameters = getParameters();
Statistics statistics = getStatistics();
Algorithms algorithms = getAlgorithms();
Simulations simulations = getSimulations();
String resultsPath = tmpDir.newFolder("comparison").toString();
TimeoutComparison comparisonEngine = getTetradComparisonEngine();
comparisonEngine.compareFromSimulations(resultsPath, simulations, algorithms, statistics, parameters, 60, TimeUnit.SECONDS);
System.out.println("================================================================================");
System.out.println("Output File:");
System.out.println("================================================================================");
Path outputFile = Paths.get(resultsPath, "Comparison.txt");
if (Files.exists(outputFile)) {
try (Stream<String> stream = Files.lines(outputFile)) {
stream.forEach(out::println);
}
}
System.out.println("================================================================================");
}
Aggregations