Class SpFci
java.lang.Object
edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
edu.cmu.tetrad.algcomparison.algorithm.oracle.pag.SpFci
- All Implemented Interfaces:
- Algorithm,- ReturnsBootstrapGraphs,- TakesCovarianceMatrix,- HasKnowledge,- HasParameters,- TakesIndependenceWrapper,- UsesScoreWrapper,- TetradSerializable,- Serializable
@Algorithm(name="SP-FCI",
           command="spfci",
           algoType=allow_latent_common_causes)
@Bootstrapping
public class SpFci
extends AbstractBootstrapAlgorithm
implements Algorithm, UsesScoreWrapper, TakesIndependenceWrapper, HasKnowledge, ReturnsBootstrapGraphs, TakesCovarianceMatrix
Adjusts GFCI to use a permutation algorithm (in this case SP) to do the initial steps of finding adjacencies and
 unshielded colliders.
 
GFCI reference is this:
J.M. Ogarrio and P. Spirtes and J. Ramsey, "A Hybrid Causal Search Algorithm for Latent Variable Models," JMLR 2016.
- Version:
- $Id: $Id
- Author:
- josephramsey
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionSpFci()The SpFci class represents a specific algorithm for structural learning called "Conditional Independence Test-based Fast Causal Inference" (SpFci).SpFci(IndependenceWrapper test, ScoreWrapper score) Constructor for the SpFci class.
- 
Method SummaryModifier and TypeMethodDescriptiongetComparisonGraph(Graph graph) Returns the comparison graph created by converting a true directed graph into a partially directed acyclic graph (PAG).Returns the data type that the search requires, whether continuous, discrete, or mixed.Returns a short, one-line description of this algorithm.Retrieves the IndependenceWrapper associated with this algorithm.Retrieves the knowledge object associated with this algorithm.Returns the list of parameters used by the method.Retrieves the ScoreWrapper object associated with this algorithm.runSearch(DataModel dataModel, Parameters parameters) Executes a search algorithm to infer the causal graph structure from a given data modelvoidSets the IndependenceWrapper object for the algorithm.voidsetKnowledge(Knowledge knowledge) Sets the knowledge object associated with this algorithm.voidsetScoreWrapper(ScoreWrapper score) Sets the ScoreWrapper object for the algorithm.Methods inherited from class edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithmgetBootstrapGraphs, searchMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.cmu.tetrad.algcomparison.algorithm.ReturnsBootstrapGraphsgetBootstrapGraphs
- 
Constructor Details- 
SpFcipublic SpFci()The SpFci class represents a specific algorithm for structural learning called "Conditional Independence Test-based Fast Causal Inference" (SpFci). This class extends the AbstractBootstrapAlgorithm class and implements the Algorithm, UsesScoreWrapper, and TakesIndependenceWrapper interfaces.
- 
SpFciConstructor for the SpFci class.- Parameters:
- test- The IndependenceWrapper object to be used for the algorithm.
- score- The ScoreWrapper object to be used for the algorithm.
 
 
- 
- 
Method Details- 
runSearchExecutes a search algorithm to infer the causal graph structure from a given data model- Parameters:
- dataModel- The data model representing the observed variables and their relationships
- parameters- The parameters for the search algorithm
- Returns:
- The inferred causal graph structure
- Throws:
- InterruptedException
 
- 
getComparisonGraphReturns the comparison graph created by converting a true directed graph into a partially directed acyclic graph (PAG).- Specified by:
- getComparisonGraphin interface- Algorithm
- Parameters:
- graph- The true, directed graph, if there is one.
- Returns:
- The comparison graph as a partially directed acyclic graph (PAG).
 
- 
getDescriptionReturns a short, one-line description of this algorithm. This will be printed in the report.- Specified by:
- getDescriptionin interface- Algorithm
- Returns:
- The description of this algorithm.
 
- 
getDataTypeReturns the data type that the search requires, whether continuous, discrete, or mixed.- Specified by:
- getDataTypein interface- Algorithm
- Returns:
- The DataType of this algorithm.
 
- 
getParametersReturns the list of parameters used by the method.- Specified by:
- getParametersin interface- HasParameters
- Returns:
- A List of strings representing the parameters used by the method.
 
- 
getKnowledgeRetrieves the knowledge object associated with this algorithm.- Specified by:
- getKnowledgein interface- HasKnowledge
- Returns:
- The knowledge object.
 
- 
setKnowledgeSets the knowledge object associated with this algorithm.- Specified by:
- setKnowledgein interface- HasKnowledge
- Parameters:
- knowledge- The knowledge object to be set.
 
- 
getIndependenceWrapperRetrieves the IndependenceWrapper associated with this algorithm.- Specified by:
- getIndependenceWrapperin interface- TakesIndependenceWrapper
- Returns:
- The IndependenceWrapper object.
 
- 
setIndependenceWrapperSets the IndependenceWrapper object for the algorithm.- Specified by:
- setIndependenceWrapperin interface- TakesIndependenceWrapper
- Parameters:
- test- the IndependenceWrapper object to be set.
 
- 
getScoreWrapperRetrieves the ScoreWrapper object associated with this algorithm.- Specified by:
- getScoreWrapperin interface- UsesScoreWrapper
- Returns:
- The ScoreWrapper object.
 
- 
setScoreWrapperSets the ScoreWrapper object for the algorithm.- Specified by:
- setScoreWrapperin interface- UsesScoreWrapper
- Parameters:
- score- the score wrapper.
 
 
-