Package edu.cmu.tetrad.search
Class SvarGfci
java.lang.Object
edu.cmu.tetrad.search.SvarGfci
- All Implemented Interfaces:
IGraphSearch
Represents a FGES-FCI search algorithm for structure learning in causal discovery.
-
Constructor Summary
ConstructorsConstructorDescriptionSvarGfci(IndependenceTest test, Score score) Constructs a new SvarGfci search for the given independence test and background knowledge. -
Method Summary
Modifier and TypeMethodDescriptionsearch()Runs the search and returns a PAG.voidsetCompleteRuleSetUsed(boolean completeRuleSetUsed) Sets whether the complete rule set is used.voidsetKnowledge(Knowledge knowledge) Sets the knowledge for the search.voidsetMaxDiscriminatingPathLength(int maxDiscriminatingPathLength) Sets the maximum length of any discriminating path.voidsetResolveAlmostCyclicPaths(boolean resolveAlmostCyclicPaths) Sets whether to resolve almost cyclic paths during the search.voidsetVerbose(boolean verbose) Sets whether verbose output is printed.
-
Constructor Details
-
SvarGfci
Constructs a new SvarGfci search for the given independence test and background knowledge.- Parameters:
test- The independence test.score- The score.
-
-
Method Details
-
search
Runs the search and returns a PAG.- Specified by:
searchin interfaceIGraphSearch- Returns:
- a PAG.
- Throws:
InterruptedException- if any
-
setKnowledge
Sets the knowledge for the search.- Parameters:
knowledge- The knowledge.
-
setCompleteRuleSetUsed
public void setCompleteRuleSetUsed(boolean completeRuleSetUsed) Sets whether the complete rule set is used.- Parameters:
completeRuleSetUsed- True if Zhang's complete rule set should be used, False if only R1-R4 (the rule set of the original FCI) should be used. False by default.
-
setMaxDiscriminatingPathLength
public void setMaxDiscriminatingPathLength(int maxDiscriminatingPathLength) Sets the maximum length of any discriminating path.- Parameters:
maxDiscriminatingPathLength- the maximum length of any discriminating path, or -1 if unlimited.
-
setVerbose
public void setVerbose(boolean verbose) Sets whether verbose output is printed.- Parameters:
verbose- True, if so.
-
setResolveAlmostCyclicPaths
public void setResolveAlmostCyclicPaths(boolean resolveAlmostCyclicPaths) Sets whether to resolve almost cyclic paths during the search.- Parameters:
resolveAlmostCyclicPaths- True if almost cyclic paths should be resolved, false otherwise.
-