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
-
Constructor Summary
ConstructorsConstructorDescriptionGeneralResamplingTest
(DataSet data, Algorithm algorithm, int numberResampling, double percentResamplingSize, boolean resamplingWithReplacement, int edgeEnsemble, boolean addOriginalDataset) GeneralResamplingTest
(List<DataSet> dataSets, MultiDataSetAlgorithm multiDataSetAlgorithm, int numberResampling, double percentResamplingSize, boolean resamplingWithReplacement, int edgeEnsemble, boolean addOriginalDataset) -
Method Summary
Modifier and TypeMethodDescriptionstatic int[][]
getAdjConfusionMatrix
(Graph truth, Graph estimate) static int[][]
getEdgeTypeConfusionMatrix
(Graph truth, Graph estimate) Returns the individual bootstrap result graphs.getOut()
search()
void
setExternalGraph
(Graph externalGraph) Sets the initial graph.void
setIndTestWrapper
(IndependenceWrapper independenceWrapper) void
setKnowledge
(Knowledge knowledge) Sets the background knowledge.void
setOut
(PrintStream out) Sets the output stream that output (except for log output) should be sent to.void
setParameters
(Parameters parameters) void
setScoreWrapper
(ScoreWrapper scoreWrapper) void
setVerbose
(boolean verbose) Sets whether verbose output should be produced.
-
Constructor Details
-
GeneralResamplingTest
-
GeneralResamplingTest
public GeneralResamplingTest(List<DataSet> dataSets, MultiDataSetAlgorithm multiDataSetAlgorithm, int numberResampling, double percentResamplingSize, boolean resamplingWithReplacement, int edgeEnsemble, boolean addOriginalDataset)
-
-
Method Details
-
getAdjConfusionMatrix
-
getEdgeTypeConfusionMatrix
-
setVerbose
public void setVerbose(boolean verbose) Sets whether verbose output should be produced. -
getOut
- 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. -
setParameters
-
setKnowledge
Sets the background knowledge.- Parameters:
knowledge
- the knowledge object, specifying forbidden and required edges.
-
setExternalGraph
Sets the initial graph. -
search
-
setScoreWrapper
-
setIndTestWrapper
-
getGraphs
Returns the individual bootstrap result graphs.- Returns:
- A list of these Graphs.
-