Package edu.cmu.tetrad.algcomparison
Class TimeoutComparison
java.lang.Object
edu.cmu.tetrad.algcomparison.TimeoutComparison
Nov 14, 2017 12:00:31 PM
- Author:
- Kevin V. Bui (kvb2@pitt.edu)
- 
Nested Class SummaryNested Classes
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidcompareFromFiles(String filePath, Algorithms algorithms, Statistics statistics, Parameters parameters, long timeout, TimeUnit unit) voidcompareFromFiles(String dataPath, String resultsPath, Algorithms algorithms, Statistics statistics, Parameters parameters, long timeout, TimeUnit unit) Compares algorithms.voidcompareFromSimulations(String resultsPath, Simulations simulations, Algorithms algorithms, Statistics statistics, Parameters parameters, long timeout, TimeUnit unit) voidcompareFromSimulations(String resultsPath, Simulations simulations, String outputFileName, Algorithms algorithms, Statistics statistics, Parameters parameters, long timeout, TimeUnit unit) Compares algorithms.voidconfiguration(String path) voidgenerateReportFromExternalAlgorithms(String dataPath, String resultsPath, Algorithms algorithms, Statistics statistics, Parameters parameters, long timeout, TimeUnit unit) voidgenerateReportFromExternalAlgorithms(String dataPath, String resultsPath, String outputFileName, Algorithms algorithms, Statistics statistics, Parameters parameters, long timeout, TimeUnit unit) The type of graph the results are compared to.booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidsaveToFiles(String dataPath, Simulation simulation, Parameters parameters) Saves simulationWrapper data.voidsetComparisonGraph(TimeoutComparison.ComparisonGraph comparisonGraph) The type of graph the results are compared to.voidsetCopyData(boolean copyData) voidsetParallelized(boolean parallelized) voidsetSaveCPDAGs(boolean saveCPDAGs) voidsetSaveGraphs(boolean saveGraphs) voidsetSavePags(boolean savePags) voidsetShowAlgorithmIndices(boolean showAlgorithmIndices) voidsetShowSimulationIndices(boolean showSimulationIndices) voidsetShowUtilities(boolean showUtilities) voidsetSortByUtility(boolean sortByUtility) voidsetTabDelimitedTables(boolean tabDelimitedTables) 
- 
Constructor Details- 
TimeoutComparisonpublic TimeoutComparison()
 
- 
- 
Method Details- 
compareFromFilespublic void compareFromFiles(String filePath, Algorithms algorithms, Statistics statistics, Parameters parameters, long timeout, TimeUnit unit) 
- 
compareFromFilespublic void compareFromFiles(String dataPath, String resultsPath, Algorithms algorithms, Statistics statistics, Parameters parameters, long timeout, TimeUnit unit) Compares algorithms.- Parameters:
- dataPath- Path to the directory where data and graph files have been saved.
- resultsPath- Path to the file where the results should be stored.
- algorithms- The list of algorithms to be compared.
- statistics- The list of statistics on which to compare the algorithm, and their utility weights.
- parameters- The list of parameters and their values.
 
- 
generateReportFromExternalAlgorithmspublic void generateReportFromExternalAlgorithms(String dataPath, String resultsPath, Algorithms algorithms, Statistics statistics, Parameters parameters, long timeout, TimeUnit unit) 
- 
generateReportFromExternalAlgorithmspublic void generateReportFromExternalAlgorithms(String dataPath, String resultsPath, String outputFileName, Algorithms algorithms, Statistics statistics, Parameters parameters, long timeout, TimeUnit unit) 
- 
compareFromSimulationspublic void compareFromSimulations(String resultsPath, Simulations simulations, Algorithms algorithms, Statistics statistics, Parameters parameters, long timeout, TimeUnit unit) 
- 
compareFromSimulationspublic void compareFromSimulations(String resultsPath, Simulations simulations, String outputFileName, Algorithms algorithms, Statistics statistics, Parameters parameters, long timeout, TimeUnit unit) Compares algorithms.- Parameters:
- resultsPath- Path to the file where the output should be printed.
- simulations- The list of simulationWrapper that is used to generate graphs and data for the comparison.
- algorithms- The list of algorithms to be compared.
- statistics- The list of statistics on which to compare the algorithm, and their utility weights.
 
- 
saveToFilesSaves simulationWrapper data.- Parameters:
- dataPath- The path to the directory where the simulationWrapper data should be saved.
- simulation- The simulate used to generate the graphs and data.
- parameters- The parameters to be used in the simulationWrapper.
 
- 
configuration
- 
isShowSimulationIndicespublic boolean isShowSimulationIndices()
- 
setShowSimulationIndicespublic void setShowSimulationIndices(boolean showSimulationIndices) 
- 
isShowAlgorithmIndicespublic boolean isShowAlgorithmIndices()
- 
setShowAlgorithmIndicespublic void setShowAlgorithmIndices(boolean showAlgorithmIndices) 
- 
isShowUtilitiespublic boolean isShowUtilities()- Returns:
- True iff a column of utilities marked "W" should be shown in the output.
 
- 
setShowUtilitiespublic void setShowUtilities(boolean showUtilities) - Parameters:
- showUtilities- True iff a column of utilities marked "W" should be shown in the output.
 
- 
isSortByUtilitypublic boolean isSortByUtility()- Returns:
- True iff the output should be sorted by utility.
 
- 
setSortByUtilitypublic void setSortByUtility(boolean sortByUtility) - Parameters:
- sortByUtility- true iff the output should be sorted by utility.
 
- 
isParallelizedpublic boolean isParallelized()
- 
setParallelizedpublic void setParallelized(boolean parallelized) 
- 
isSaveCPDAGspublic boolean isSaveCPDAGs()- Returns:
- True if CPDAGs should be saved out.
 
- 
setSaveCPDAGspublic void setSaveCPDAGs(boolean saveCPDAGs) - Parameters:
- saveCPDAGs- True if CPDAGs should be saved out.
 
- 
isSavePagspublic boolean isSavePags()- Returns:
- True if patterns should be saved out.
 
- 
setSavePagspublic void setSavePags(boolean savePags) - Parameters:
- savePags- True if patterns should be saved out.
 
- 
isTabDelimitedTablespublic boolean isTabDelimitedTables()- Returns:
- True iff tables should be tab delimited (e.g. for easy pasting into Excel).
 
- 
setTabDelimitedTablespublic void setTabDelimitedTables(boolean tabDelimitedTables) - Parameters:
- tabDelimitedTables- True iff tables should be tab delimited (e.g. for easy pasting into Excel).
 
- 
setSaveGraphspublic void setSaveGraphs(boolean saveGraphs) - Parameters:
- saveGraphs- True if all graphs should be saved to files.
 
- 
isSaveGraphspublic boolean isSaveGraphs()- Returns:
- True if all graphs should be saved to files.
 
- 
isCopyDatapublic boolean isCopyData()- Returns:
- True if data should be copied before analyzing it.
 
- 
setCopyDatapublic void setCopyData(boolean copyData) - Parameters:
- copyData- True if data should be copied before analyzing it.
 
- 
getComparisonGraphThe type of graph the results are compared to.
- 
setComparisonGraphThe type of graph the results are compared to.
 
-