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.
- Version:
- $Id: $Id
- 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) Setter for the fielddepth
.void
setKnowledge
(Knowledge knowledge) Sets the knowledge to use for orientation.void
setMaxDiscriminatingPathLength
(int maxDiscriminatingPathLength) Sets the maximum length of any discriminating path.void
setUseHeuristic
(boolean useHeuristic) Sets whether the max P heuristic should be used.void
setVerbose
(boolean verbose) Sets the verbose flag.
-
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.- Throws:
InterruptedException
-
setDepth
public void setDepth(int depth) Setter for the field
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.
-
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.
-
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.
-
setVerbose
public void setVerbose(boolean verbose) Sets the verbose flag.- Parameters:
verbose
- The boolean value indicating whether to enable verbose logging.
-