Class GraspFci
java.lang.Object
edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
edu.cmu.tetrad.algcomparison.algorithm.oracle.pag.GraspFci
- All Implemented Interfaces:
Algorithm,LatentStructureAlgorithm,ReturnsBootstrapGraphs,TakesCovarianceMatrix,HasKnowledge,HasParameters,TakesIndependenceWrapper,TakesScoreWrapper,TetradSerializable,Serializable
@Algorithm(name="GRASP-FCI",
command="grasp-fci",
algoType=allow_latent_common_causes)
@Bootstrapping
public class GraspFci
extends AbstractBootstrapAlgorithm
implements Algorithm, TakesScoreWrapper, TakesIndependenceWrapper, HasKnowledge, ReturnsBootstrapGraphs, TakesCovarianceMatrix, LatentStructureAlgorithm
GRaSP-FCI, an implentatation of *-FCI using GRaSP.
- Version:
- $Id: $Id
- Author:
- josephramsey
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGraspFci()Constructor for GraspFci.GraspFci(IndependenceWrapper test, ScoreWrapper score) Constructor for GraspFci. -
Method Summary
Modifier and TypeMethodDescriptiongetComparisonGraph(Graph graph) Retrieves a comparison graph by transforming a true directed graph into a partially directed graph (PAG).Retrieves the data type required by the search algorithm.Returns a short, one-line description of this algorithm.Retrieves the IndependenceWrapper object associated with this method.Retrieves the knowledge object associated with this method.Retrieves the list of parameters used by the algorithm.Retrieves the ScoreWrapper object associated with this method.runSearch(DataModel dataModel, Parameters parameters) Runs a search algorithm to find a graph structure based on a given data set and parameters.voidSets the independence wrapper.voidsetKnowledge(Knowledge knowledge) Sets the knowledge object associated with this method.voidsetScoreWrapper(ScoreWrapper score) Sets the score wrapper for the algorithm.Methods inherited from class edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
getBootstrapGraphs, searchMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.cmu.tetrad.algcomparison.algorithm.ReturnsBootstrapGraphs
getBootstrapGraphs
-
Constructor Details
-
GraspFci
public GraspFci()Constructor for GraspFci.
-
GraspFci
Constructor for GraspFci.
- Parameters:
test- aIndependenceWrapperobjectscore- aScoreWrapperobject
-
-
Method Details
-
runSearch
Runs a search algorithm to find a graph structure based on a given data set and parameters.- Parameters:
dataModel- the data set to be used for the search algorithmparameters- the parameters for the search algorithm- Returns:
- the graph structure found by the search algorithm
- Throws:
InterruptedException
-
getComparisonGraph
Retrieves a comparison graph by transforming a true directed graph into a partially directed graph (PAG).- Specified by:
getComparisonGraphin interfaceAlgorithm- Parameters:
graph- The true directed graph, if there is one.- Returns:
- The comparison graph.
-
getDescription
Returns a short, one-line description of this algorithm. The description is generated by concatenating the descriptions of the test and score objects associated with this algorithm.- Specified by:
getDescriptionin interfaceAlgorithm- Returns:
- The description of this algorithm.
-
getDataType
Retrieves the data type required by the search algorithm.- Specified by:
getDataTypein interfaceAlgorithm- Returns:
- The data type required by the search algorithm.
-
getParameters
Retrieves the list of parameters used by the algorithm.- Specified by:
getParametersin interfaceHasParameters- Returns:
- The list of parameters used by the algorithm.
-
getKnowledge
Retrieves the knowledge object associated with this method.- Specified by:
getKnowledgein interfaceHasKnowledge- Returns:
- The knowledge object.
-
setKnowledge
Sets the knowledge object associated with this method.- Specified by:
setKnowledgein interfaceHasKnowledge- Parameters:
knowledge- the knowledge object to be set
-
getIndependenceWrapper
Retrieves the IndependenceWrapper object associated with this method. The IndependenceWrapper object contains an IndependenceTest that checks the independence of two variables conditional on a set of variables using a given dataset and parameters .- Specified by:
getIndependenceWrapperin interfaceTakesIndependenceWrapper- Returns:
- The IndependenceWrapper object associated with this method.
-
setIndependenceWrapper
Sets the independence wrapper.- Specified by:
setIndependenceWrapperin interfaceTakesIndependenceWrapper- Parameters:
test- the independence wrapper.
-
getScoreWrapper
Retrieves the ScoreWrapper object associated with this method.- Specified by:
getScoreWrapperin interfaceTakesScoreWrapper- Returns:
- The ScoreWrapper object associated with this method.
-
setScoreWrapper
Sets the score wrapper for the algorithm.- Specified by:
setScoreWrapperin interfaceTakesScoreWrapper- Parameters:
score- the score wrapper.
-