Class GeneralResamplingSearchRunnable
java.lang.Object
edu.pitt.dbmi.algo.resampling.task.GeneralResamplingSearchRunnable
A runnable for a single search over either a single- or multi-data set algorithm, for use in a thread pool.
- Version:
- $Id: $Id
- Author:
- Chirayu (Kong) Wongchokprasitti, PhD, josephramsey Cleanup.
-
Constructor Summary
ConstructorsConstructorDescriptionGeneralResamplingSearchRunnable
(DataModel dataModel, Algorithm algorithm, Parameters parameters) Constructor for single-data set algorithms.GeneralResamplingSearchRunnable
(List<DataModel> dataModel, MultiDataSetAlgorithm algorithm, Parameters parameters) Constructor for multi-data set algorithms. -
Method Summary
Modifier and TypeMethodDescriptioncall()
Runs the search over the data model or data models, using the algorithm and parameters.void
setIndependenceWrapper
(IndependenceWrapper independenceWrapper) Sets the independence wrapper, for multi-data set algorithms.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
setScoreWrapper
(ScoreWrapper scoreWrapper) Sets the score wrapper, for multi-data set algorithms.void
setVerbose
(boolean verbose) Sets whether verbose output should be printed.
-
Constructor Details
-
GeneralResamplingSearchRunnable
public GeneralResamplingSearchRunnable(DataModel dataModel, Algorithm algorithm, Parameters parameters) Constructor for single-data set algorithms.- Parameters:
dataModel
- aDataModel
objectalgorithm
- aAlgorithm
objectparameters
- aParameters
object
-
GeneralResamplingSearchRunnable
public GeneralResamplingSearchRunnable(List<DataModel> dataModel, MultiDataSetAlgorithm algorithm, Parameters parameters) Constructor for multi-data set algorithms.- Parameters:
dataModel
- aList
objectalgorithm
- aMultiDataSetAlgorithm
objectparameters
- aParameters
object
-
-
Method Details
-
setKnowledge
Sets the background knowledge.- Parameters:
knowledge
- the knowledge object, specifying forbidden and required edges.
-
setOut
Sets the output stream that output (except for log output) should be sent to. By default, System.out.- Parameters:
out
- aPrintStream
object
-
call
Runs the search over the data model or data models, using the algorithm and parameters. -
setScoreWrapper
Sets the score wrapper, for multi-data set algorithms.- Parameters:
scoreWrapper
- aScoreWrapper
object
-
setIndependenceWrapper
Sets the independence wrapper, for multi-data set algorithms.- Parameters:
independenceWrapper
- aIndependenceWrapper
object
-
setVerbose
public void setVerbose(boolean verbose) Sets whether verbose output should be printed.- Parameters:
verbose
- a boolean
-