Package edu.cmu.tetrad.search.utils
Class SepsetsGreedy
java.lang.Object
edu.cmu.tetrad.search.utils.SepsetsGreedy
- All Implemented Interfaces:
SepsetProducer
Provides a SepsetProcuder that selects the first sepset it comes to from among the extra sepsets or the adjacents of i or k, or null if none is found.
- Author:
- josephramsey
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSepsetsGreedy
(Graph graph, IndependenceTest independenceTest, SepsetMap extraSepsets, int depth, Knowledge knowledge) -
Method Summary
Modifier and TypeMethodDescriptiongetDag()
double
getScore()
Pick out the sepset from among adj(i) or adj(k) with the highest score value.boolean
isIndependent
(Node a, Node b, Set<Node> c) boolean
isUnshieldedCollider
(Node i, Node j, Node k) boolean
void
setDepth
(int depth) void
setVerbose
(boolean verbose)
-
Constructor Details
-
SepsetsGreedy
public SepsetsGreedy(Graph graph, IndependenceTest independenceTest, SepsetMap extraSepsets, int depth, Knowledge knowledge)
-
-
Method Details
-
getSepset
Pick out the sepset from among adj(i) or adj(k) with the highest score value.- Specified by:
getSepset
in interfaceSepsetProducer
-
isUnshieldedCollider
- Specified by:
isUnshieldedCollider
in interfaceSepsetProducer
-
isIndependent
- Specified by:
isIndependent
in interfaceSepsetProducer
-
getScore
public double getScore()- Specified by:
getScore
in interfaceSepsetProducer
-
getVariables
- Specified by:
getVariables
in interfaceSepsetProducer
-
isVerbose
public boolean isVerbose() -
setVerbose
public void setVerbose(boolean verbose) - Specified by:
setVerbose
in interfaceSepsetProducer
-
getDag
-
setDepth
public void setDepth(int depth)
-