Package edu.cmu.tetrad.search
Class SvarGfci
java.lang.Object
edu.cmu.tetrad.search.SvarGfci
- All Implemented Interfaces:
IGraphSearch
Represents a GFCI search algorithm for structure learning in causal discovery.
-
Constructor Summary
ConstructorsConstructorDescriptionSvarGfci
(IndependenceTest test, Score score) Constructs a new GFCI search for the given independence test and background knowledge. -
Method Summary
Modifier and TypeMethodDescriptionsearch()
Runs the search and returns a PAG.void
setCompleteRuleSetUsed
(boolean completeRuleSetUsed) Sets whether the complete rule set is used.void
setKnowledge
(Knowledge knowledge) Sets the knowledge for the search.void
setMaxDiscriminatingPathLength
(int maxDiscriminatingPathLength) Sets the maximum length of any discriminating path.void
setResolveAlmostCyclicPaths
(boolean resolveAlmostCyclicPaths) Sets whether to resolve almost cyclic paths during the search.void
setVerbose
(boolean verbose) Sets whether verbose output is printed.
-
Constructor Details
-
SvarGfci
Constructs a new GFCI 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:
search
in 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.
-