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) Retrieves the comparison graph based on the given true directed graph.Retrieves the data type of the algorithm.Retrieves the description of the algorithm.Retrieves the knowledge associated with this instance.Retrieves the parameters required by the Images algorithm.Retrieves the score wrapper associated with this instance.search
(DataModel dataSet, Parameters parameters) Searches for a graph based on the given data set and parameters.search
(List<DataModel> dataSets, Parameters parameters) Searches for a graph based on the given data sets and parameters.void
Sets the IndependenceWrapper for the algorithm.void
setKnowledge
(Knowledge knowledge) Sets the knowledge associated with this instance.void
setScoreWrapper
(ScoreWrapper score) Sets the score wrapper associated with this instance.
-
Constructor Details
-
Images
Constructor for Images.
- Parameters:
score
- aScoreWrapper
object
-
Images
public Images()Constructor for Images.
-
-
Method Details
-
search
Searches for a graph based on the given data sets and parameters.- Specified by:
search
in interfaceMultiDataSetAlgorithm
- Parameters:
dataSets
- The data sets to search on.parameters
- The parameters to use for the search.- Returns:
- A Graph object representing the search result.
-
search
Searches for a graph based on the given data set and parameters. -
getComparisonGraph
Retrieves the comparison graph based on the given true directed graph.- Specified by:
getComparisonGraph
in interfaceAlgorithm
- Parameters:
graph
- The true directed graph, if there is one.- Returns:
- The comparison graph.
-
getDescription
Retrieves the description of the algorithm.- Specified by:
getDescription
in interfaceAlgorithm
- Returns:
- The description of the algorithm.
-
getDataType
Retrieves the data type of the algorithm.- Specified by:
getDataType
in interfaceAlgorithm
- Returns:
- The data type of the algorithm.
-
getParameters
Retrieves the parameters required by the Images algorithm.- Specified by:
getParameters
in interfaceAlgorithm
- Specified by:
getParameters
in interfaceHasParameters
- Returns:
- A list of strings representing the parameters required by the Images algorithm.
-
getKnowledge
Retrieves the knowledge associated with this instance.- Specified by:
getKnowledge
in interfaceHasKnowledge
- Returns:
- The Knowledge object representing the knowledge associated with this instance.
-
setKnowledge
Sets the knowledge associated with this instance.- Specified by:
setKnowledge
in interfaceHasKnowledge
- Parameters:
knowledge
- The knowledge object to be set.
-
getScoreWrapper
Retrieves the score wrapper associated with this instance.- Specified by:
getScoreWrapper
in interfaceUsesScoreWrapper
- Returns:
- The ScoreWrapper object representing the score wrapper associated with this instance.
-
setScoreWrapper
Sets the score wrapper associated with this instance.- Specified by:
setScoreWrapper
in interfaceMultiDataSetAlgorithm
- Specified by:
setScoreWrapper
in interfaceUsesScoreWrapper
- Parameters:
score
- The ScoreWrapper object representing the score wrapper to be set.- See Also:
-
setIndTestWrapper
Sets the IndependenceWrapper for the algorithm.- Specified by:
setIndTestWrapper
in interfaceMultiDataSetAlgorithm
- Parameters:
test
- The IndependenceWrapper to be set.- See Also:
-