Package edu.cmu.tetrad.search.utils
Class MaxP
java.lang.Object
edu.cmu.tetrad.search.utils.MaxP
Performs a Max-P orientation of unshielded triples in a graph.
Ramsey, J. (2016). Improving accuracy and scalability of the pc algorithm by maximizing p-value. arXiv preprint arXiv:1610.00378.
- Author:
- josephramsey
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds colliders to the given graph using the max P rule.void
setConflictRule
(PcCommon.ConflictRule conflictRule) Sets the PC conflict rule to use for orientation.void
setDepth
(int depth) void
setKnowledge
(Knowledge knowledge) Sets the knowledge to use for orientation.void
setMaxPathLength
(int maxPathLength) Sets the max path length to use for the max P heuristic.void
setUseHeuristic
(boolean useHeuristic) Sets whether the max P heuristic should be used.
-
Constructor Details
-
MaxP
Constructor.- Parameters:
test
- The test to use for orienting colliders using the Max-P rule.
-
-
Method Details
-
orient
Adds colliders to the given graph using the max P rule.- Parameters:
graph
- The graph to orient.
-
setDepth
public void setDepth(int depth) - Parameters:
depth
- The depth of search for the Fast Adjacency Search.
-
setUseHeuristic
public void setUseHeuristic(boolean useHeuristic) Sets whether the max P heuristic should be used.- Parameters:
useHeuristic
- True, if so.
-
setMaxPathLength
public void setMaxPathLength(int maxPathLength) Sets the max path length to use for the max P heuristic.- Parameters:
maxPathLength
- This maximum.
-
setConflictRule
Sets the PC conflict rule to use for orientation.- Parameters:
conflictRule
- This rule.- See Also:
-
setKnowledge
Sets the knowledge to use for orientation.- Parameters:
knowledge
- This knowledge.
-