Package edu.pitt.dbmi.algo.resampling
Class GeneralResamplingSearch
java.lang.Object
edu.pitt.dbmi.algo.resampling.GeneralResamplingSearch
Sep 7, 2018 1:38:50 PM
- Author:
- Chirayu Kong Wongchokprasitti, PhD (chw20@pitt.edu)
-
Constructor Summary
ConstructorsConstructorDescriptionGeneralResamplingSearch
(DataSet data, int numberResampling) Constructor.GeneralResamplingSearch
(List<DataSet> dataSets, int numberResampling) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the number of no graph.getOut()
search()
Performs the search.void
setAddOriginalDataset
(boolean addOriginalDataset) Sets whether to add the original dataset.void
setAlgorithm
(Algorithm algorithm) Constructor.void
Sets the data set.void
setExternalGraph
(Graph externalGraph) Sets the external graph.void
setKnowledge
(Knowledge knowledge) Sets the background knowledge.void
setMultiDataSetAlgorithm
(MultiDataSetAlgorithm multiDataSetAlgorithm) Constructor.void
setOut
(PrintStream out) Sets the output stream that output (except for log output) should be sent to.void
setParameters
(Parameters parameters) Sets the parameters.void
setPercentResampleSize
(double percentResampleSize) Sets the number of resampling.void
setResamplingWithReplacement
(boolean resamplingWithReplacement) Sets the resampling with replacement.void
setRunParallel
(boolean runParallel) Sets whether to run in parallel.void
setScoreWrapper
(ScoreWrapper scoreWrapper) Returns the score wrapper.void
setVerbose
(boolean verbose) Sets whether to be verbose.
-
Constructor Details
-
GeneralResamplingSearch
Constructor.- Parameters:
data
- the data set.numberResampling
- the number of resampling.
-
GeneralResamplingSearch
Constructor.- Parameters:
dataSets
- the data sets.numberResampling
- the number of resampling.
-
-
Method Details
-
setAlgorithm
Constructor.- Parameters:
algorithm
- the algorithm.
-
setMultiDataSetAlgorithm
Constructor.- Parameters:
multiDataSetAlgorithm
- the multi data set algorithm.
-
setPercentResampleSize
public void setPercentResampleSize(double percentResampleSize) Sets the number of resampling.- Parameters:
percentResampleSize
- the resampling size.
-
setResamplingWithReplacement
public void setResamplingWithReplacement(boolean resamplingWithReplacement) Sets the resampling with replacement.- Parameters:
resamplingWithReplacement
- the resampling with replacement.
-
setRunParallel
public void setRunParallel(boolean runParallel) Sets whether to run in parallel.- Parameters:
runParallel
- whether to run in parallel.
-
setAddOriginalDataset
public void setAddOriginalDataset(boolean addOriginalDataset) Sets whether to add the original dataset.- Parameters:
addOriginalDataset
- whether to add the original dataset.
-
setVerbose
public void setVerbose(boolean verbose) Sets whether to be verbose.- Parameters:
verbose
- whether to be verbose.
-
setData
Sets the data set.- Parameters:
data
- the data set.
-
setKnowledge
Sets the background knowledge.- Parameters:
knowledge
- the knowledge object, specifying forbidden and required edges.
-
setExternalGraph
Sets the external graph.- Parameters:
externalGraph
- the external graph.
-
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.- Parameters:
out
- the output stream.
-
setParameters
Sets the parameters.- Parameters:
parameters
- the parameters.
-
search
Performs the search.- Returns:
- the list of graphs.
-
getNumNograph
public int getNumNograph()Returns the number of no graph.- Returns:
- the number of no graph.
-
setScoreWrapper
Returns the score wrapper.
-