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 TypeMethodDescriptionvoidAdds colliders to the given graph using the max P rule.voidsetConflictRule(PcCommon.ConflictRule conflictRule) Sets the PC conflict rule to use for orientation.voidsetDepth(int depth) voidsetKnowledge(Knowledge knowledge) Sets the knowledge to use for orientation.voidsetMaxPathLength(int maxPathLength) Sets the max path length to use for the max P heuristic.voidsetUseHeuristic(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.
-