Package edu.pitt.dbmi.algo.resampling
Class GeneralResamplingTest
java.lang.Object
edu.pitt.dbmi.algo.resampling.GeneralResamplingTest
Created by mahdi on 1/16/17.
Updated: Chirayu Kong Wongchokprasitti, PhD on 9/13/2018
- Version:
- $Id: $Id
-
Constructor Summary
ConstructorsConstructorDescriptionGeneralResamplingTest
(DataSet data, Algorithm algorithm, Knowledge knowledge, Parameters parameters) Constructor for single data set algorithms.GeneralResamplingTest
(List<DataSet> dataSets, MultiDataSetAlgorithm multiDataSetAlgorithm, Knowledge knowledge, Parameters parameters) Constructor for multiple data set algorithms. -
Method Summary
Modifier and TypeMethodDescriptionstatic int[][]
getAdjConfusionMatrix
(Graph truth, Graph estimate) Constructor.static int[][]
getEdgeTypeConfusionMatrix
(Graph truth, Graph estimate) Constructor.Returns the individual bootstrap result graphs.getOut()
Getter for the fieldout
.search()
Runs the resampling test.void
setOut
(PrintStream out) Sets the output stream that output (except for log output) should be sent to.void
setScoreWrapper
(ScoreWrapper score) Sets the score wrapper if not null.void
setVerbose
(boolean verbose) Sets whether verbose output should be produced.
-
Constructor Details
-
GeneralResamplingTest
public GeneralResamplingTest(DataSet data, Algorithm algorithm, Knowledge knowledge, Parameters parameters) Constructor for single data set algorithms.- Parameters:
data
- the data set.algorithm
- the algorithm.knowledge
- the knowledge.parameters
- the parameters.
-
GeneralResamplingTest
public GeneralResamplingTest(List<DataSet> dataSets, MultiDataSetAlgorithm multiDataSetAlgorithm, Knowledge knowledge, Parameters parameters) Constructor for multiple data set algorithms.- Parameters:
dataSets
- the data sets.multiDataSetAlgorithm
- the algorithm.knowledge
- the knowledge.parameters
- the parameters.
-
-
Method Details
-
getAdjConfusionMatrix
Constructor.- Parameters:
truth
- the true graph.estimate
- the estimated graph.- Returns:
- an array of
invalid reference
int
-
getEdgeTypeConfusionMatrix
Constructor.- Parameters:
truth
- the true graph.estimate
- the estimated graph.- Returns:
- an array of
invalid reference
int
-
setVerbose
public void setVerbose(boolean verbose) Sets whether verbose output should be produced.- Parameters:
verbose
- whether verbose output should be produced.
-
getOut
Getter for the field
out
.- Returns:
- the output stream that output (except for log output) should be sent to.
-
setOut
Sets the output stream that output (except for log output) should be sent to. By default, System.out.- Parameters:
out
- the output stream that output (except for log output) should be sent to.
-
search
Runs the resampling test.- Returns:
- the graph.
-
getGraphs
Returns the individual bootstrap result graphs.- Returns:
- A list of these Graphs.
-
setScoreWrapper
Sets the score wrapper if not null.- Parameters:
score
- The wrapper- See Also:
-