Class Images
java.lang.Object
edu.cmu.tetrad.algcomparison.algorithm.multi.Images
- All Implemented Interfaces:
Algorithm
,MultiDataSetAlgorithm
,HasKnowledge
,HasParameters
,UsesScoreWrapper
,TetradSerializable
,Serializable
@Algorithm(name="IMaGES",
command="images",
algoType=forbid_latent_common_causes,
dataType=All)
@Bootstrapping
public class Images
extends Object
implements MultiDataSetAlgorithm, HasKnowledge, UsesScoreWrapper
Wraps the IMaGES algorithm for continuous variables.
Requires that the parameter 'randomSelectionSize' be set to indicate how many datasets should be taken at a time (randomly). This cannot given multiple values.
- Version:
- $Id: $Id
- Author:
- josephramsey
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionImages()
Constructor for Images.Images
(ScoreWrapper score) Constructor for Images. -
Method Summary
Modifier and TypeMethodDescriptiongetComparisonGraph
(Graph graph) Returns a comparison graph based on the true directed graph, if there is one.Returns the type of the data set.Returns the description of this method.Retrieves the knowledge of the current instance.Retrieves the list of parameters required for the algorithm.Retrieves the score wrapper object.search
(DataModel dataSet, Parameters parameters) Searches for a graph using the given data set and parameters.search
(List<DataModel> dataSets, Parameters parameters) Searches for a graph using the given data sets and parameters.void
Sets the IndependenceWrapper for this algorithm.void
setKnowledge
(Knowledge knowledge) Sets the knowledge object for this instance.void
setScoreWrapper
(ScoreWrapper score) Sets the score wrapper for the algorithm.
-
Constructor Details
-
Images
-
Images
public Images()Constructor for Images.
-
-
Method Details
-
search
Searches for a graph using the given data sets and parameters.- Specified by:
search
in interfaceMultiDataSetAlgorithm
- Parameters:
dataSets
- The data sets to search on.parameters
- The parameters for the search.- Returns:
- The resulting graph.
- Throws:
IllegalArgumentException
- If the meta option is unrecognized.InterruptedException
-
search
Searches for a graph using the given data set and parameters.- Specified by:
search
in interfaceAlgorithm
- Parameters:
dataSet
- The data set to run the search on.parameters
- The parameters of the search.- Returns:
- The resulting graph.
- Throws:
InterruptedException
-
getComparisonGraph
Returns a comparison graph based on the true directed graph, if there is one.- Specified by:
getComparisonGraph
in interfaceAlgorithm
- Parameters:
graph
- The true directed graph, if there is one.- Returns:
- The comparison graph.
-
getDescription
Returns the description of this method.- Specified by:
getDescription
in interfaceAlgorithm
- Returns:
- the description of this method.
-
getDataType
Returns the type of the data set.- Specified by:
getDataType
in interfaceAlgorithm
- Returns:
- the type of the data set
-
getParameters
Retrieves the list of parameters required for the algorithm.- Specified by:
getParameters
in interfaceHasParameters
- Returns:
- The list of parameters required for the algorithm.
-
getKnowledge
Retrieves the knowledge of the current instance.- Specified by:
getKnowledge
in interfaceHasKnowledge
- Returns:
- The knowledge of the current instance.
-
setKnowledge
Sets the knowledge object for this instance.- Specified by:
setKnowledge
in interfaceHasKnowledge
- Parameters:
knowledge
- The knowledge object to be set. Cannot be null.
-
getScoreWrapper
Retrieves the score wrapper object.- Specified by:
getScoreWrapper
in interfaceUsesScoreWrapper
- Returns:
- The score wrapper object.
-
setScoreWrapper
Sets the score wrapper for the algorithm.- Specified by:
setScoreWrapper
in interfaceMultiDataSetAlgorithm
- Specified by:
setScoreWrapper
in interfaceUsesScoreWrapper
- Parameters:
score
- The score wrapper to be set.
-
setIndTestWrapper
Sets the IndependenceWrapper for this algorithm.- Specified by:
setIndTestWrapper
in interfaceMultiDataSetAlgorithm
- Parameters:
test
- The IndependenceWrapper object to be set. Cannot be null.
-