Class FgesFci
java.lang.Object
edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
edu.cmu.tetrad.algcomparison.algorithm.oracle.pag.FgesFci
- All Implemented Interfaces:
Algorithm,LatentStructureAlgorithm,ReturnsBootstrapGraphs,TakesCovarianceMatrix,HasKnowledge,HasParameters,TakesIndependenceWrapper,TakesScoreWrapper,TetradSerializable,Serializable
public class FgesFci
extends AbstractBootstrapAlgorithm
implements Algorithm, HasKnowledge, TakesScoreWrapper, TakesIndependenceWrapper, ReturnsBootstrapGraphs, TakesCovarianceMatrix, LatentStructureAlgorithm
The Fges-FCI class represents the Greedy Fast Causal Inference algorithm, adjusted as in *-FCI.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFgesFci()The FGES-FCI class represents the Greedy Fast Causal Inference algorithm.FgesFci(IndependenceWrapper test, ScoreWrapper score) Constructs a new instance of FGES-FCI with the given IndependenceWrapper and ScoreWrapper. -
Method Summary
Modifier and TypeMethodDescriptiongetComparisonGraph(Graph graph) Retrieves the comparison graph by transforming the true directed graph (if there is one) into a partially directed acyclic graph (PAG).Retrieves the data type required for the search algorithm.Returns a description of the FGES-FCI algorithm using the description of the independence test and score associated with it.Returns the independence wrapper associated with this instance.Retrieves the Knowledge object associated with this instance.Returns a list of parameters used to configure the search algorithm.Retrieves the ScoreWrapper associated with this instance.runSearch(DataModel dataModel, Parameters parameters) Runs the search algorithm to infer the causal graph given a dataset and specified parameters.voidSets the independence wrapper for the algorithm.voidsetKnowledge(Knowledge knowledge) Sets the Knowledge object associated with this instance.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
-
FgesFci
public FgesFci()The FGES-FCI class represents the Greedy Fast Causal Inference algorithm. -
FgesFci
Constructs a new instance of FGES-FCI with the given IndependenceWrapper and ScoreWrapper.- Parameters:
test- The IndependenceWrapper object to associate with this FGES-FCI instance.score- The ScoreWrapper object to associate with this FGES-FCI instance.
-
-
Method Details
-
runSearch
Runs the search algorithm to infer the causal graph given a dataset and specified parameters.- Parameters:
dataModel- The dataset containing the observational data.parameters- The parameters to configure the search algorithm.- Returns:
- The inferred causal graph.
- Throws:
InterruptedException
-
getComparisonGraph
Retrieves the comparison graph by transforming the true directed graph (if there is one) into a partially directed acyclic graph (PAG).- Specified by:
getComparisonGraphin interfaceAlgorithm- Parameters:
graph- The true directed graph, if there is one.- Returns:
- The comparison graph in the form of a partially directed acyclic graph (PAG).
-
getDescription
Returns a description of the FGES-FCI algorithm using the description of the independence test and score associated with it.- Specified by:
getDescriptionin interfaceAlgorithm- Returns:
- The description of the algorithm.
-
getDataType
Retrieves the data type required for the search algorithm.- Specified by:
getDataTypein interfaceAlgorithm- Returns:
- The data type required for the search algorithm.
-
getParameters
Returns a list of parameters used to configure the search algorithm.- Specified by:
getParametersin interfaceHasParameters- Returns:
- The list of parameters used to configure the search algorithm.
-
getKnowledge
Retrieves the Knowledge object associated with this instance.- Specified by:
getKnowledgein interfaceHasKnowledge- Returns:
- The Knowledge object associated with this instance.
-
setKnowledge
Sets the Knowledge object associated with this instance.- Specified by:
setKnowledgein interfaceHasKnowledge- Parameters:
knowledge- The Knowledge object to be set.
-
getScoreWrapper
Retrieves the ScoreWrapper associated with this instance.- Specified by:
getScoreWrapperin interfaceTakesScoreWrapper- Returns:
- The ScoreWrapper associated with this instance.
-
setScoreWrapper
Sets the score wrapper for the algorithm.- Specified by:
setScoreWrapperin interfaceTakesScoreWrapper- Parameters:
score- the score wrapper.
-
getIndependenceWrapper
Returns the independence wrapper associated with this instance.- Specified by:
getIndependenceWrapperin interfaceTakesIndependenceWrapper- Returns:
- The independence wrapper.
-
setIndependenceWrapper
Sets the independence wrapper for the algorithm.- Specified by:
setIndependenceWrapperin interfaceTakesIndependenceWrapper- Parameters:
test- the independence wrapper to set
-