Class Images
java.lang.Object
edu.cmu.tetrad.algcomparison.algorithm.multi.Images
- All Implemented Interfaces:
Algorithm,MultiDataSetAlgorithm,HasKnowledge,HasParameters,TakesScoreWrapper,TetradSerializable,Serializable
@Algorithm(name="IMaGES",
command="images",
algoType=forbid_latent_common_causes,
dataType=All)
@Bootstrapping
public class Images
extends Object
implements MultiDataSetAlgorithm, HasKnowledge, TakesScoreWrapper
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.voidSets the IndependenceWrapper for this algorithm.voidsetKnowledge(Knowledge knowledge) Sets the knowledge object for this instance.voidsetScoreWrapper(ScoreWrapper score) Sets the score wrapper for the algorithm.
-
Constructor Details
-
Images
Constructor for Images.
- Parameters:
score- aScoreWrapperobject
-
Images
public Images()Constructor for Images.
-
-
Method Details
-
search
Searches for a graph using the given data sets and parameters.- Specified by:
searchin 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- if any.
-
search
Searches for a graph using the given data set and parameters.- Specified by:
searchin interfaceAlgorithm- Parameters:
dataSet- The data set to run the search on.parameters- The parameters of the search.- Returns:
- The resulting graph.
- Throws:
InterruptedException- if any.
-
getComparisonGraph
Returns a comparison graph based on the true directed graph, if there is one.- Specified by:
getComparisonGraphin interfaceAlgorithm- Parameters:
graph- The true directed graph, if there is one.- Returns:
- The comparison graph.
-
getDescription
Returns the description of this method.- Specified by:
getDescriptionin interfaceAlgorithm- Returns:
- the description of this method.
-
getDataType
Returns the type of the data set.- Specified by:
getDataTypein interfaceAlgorithm- Returns:
- the type of the data set
-
getParameters
Retrieves the list of parameters required for the algorithm.- Specified by:
getParametersin interfaceHasParameters- Returns:
- The list of parameters required for the algorithm.
-
getKnowledge
Retrieves the knowledge of the current instance.- Specified by:
getKnowledgein interfaceHasKnowledge- Returns:
- The knowledge of the current instance.
-
setKnowledge
Sets the knowledge object for this instance.- Specified by:
setKnowledgein interfaceHasKnowledge- Parameters:
knowledge- The knowledge object to be set. Cannot be null.
-
getScoreWrapper
Retrieves the score wrapper object.- Specified by:
getScoreWrapperin interfaceTakesScoreWrapper- Returns:
- The score wrapper object.
-
setScoreWrapper
Sets the score wrapper for the algorithm.- Specified by:
setScoreWrapperin interfaceMultiDataSetAlgorithm- Specified by:
setScoreWrapperin interfaceTakesScoreWrapper- Parameters:
score- The score wrapper to be set.
-
setIndTestWrapper
Sets the IndependenceWrapper for this algorithm.- Specified by:
setIndTestWrapperin interfaceMultiDataSetAlgorithm- Parameters:
test- The IndependenceWrapper object to be set. Cannot be null.
-