Package edu.cmu.tetrad.search
Class GraspFci
java.lang.Object
edu.cmu.tetrad.search.StarFci
edu.cmu.tetrad.search.GraspFci
- All Implemented Interfaces:
IGraphSearch
Uses GRaSP in the *-FCI algorithm. the reference for GraSP is here:
For GRaSP either a score or a test is needed. *-FCI requires a test. So both are needed.
This class is configured to respect knowledge of forbidden and required edges, including knowledge of temporal tiers.
- Version:
- $Id: $Id
- Author:
- josephramsey, bryanandrews
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGraspFci(IndependenceTest test, Score score) Constructs a new GraspFci object. -
Method Summary
Modifier and TypeMethodDescription@NotNull GraphReturns a Markov CPDAG to use as the initial graph in the Star-FCI search.voidsetDepth(int depth) Sets the depth for the search algorithm.voidsetNonSingularDepth(int nonSingularDepth) Sets depth for non-singular tucks.voidsetNumStarts(int numStarts) Sets the number of starts for GRaSP.voidsetOrdered(boolean ordered) Sets whether to use the ordered version of GRaSP.voidsetSeed(long seed) Setter for the fieldseed.voidsetSingularDepth(int uncoveredDepth) Sets depth for singular tucks.voidsetUseDataOrder(boolean useDataOrder) Sets whether to use data order for GRaSP (as opposed to random order) for the first step of GRaSPvoidsetUseRaskuttiUhler(boolean useRaskuttiUhler) Sets whether to use Raskutti and Uhler's modification of GRaSP.voidsetUseScore(boolean useScore) Sets whether to use score for GRaSP (as opposed to independence test) for GRaSP.Methods inherited from class edu.cmu.tetrad.search.StarFci
getIndependenceTest, getKnowledge, isVerbose, search, sepsetSubsetOfAdjxOrAdjy, setCompleteRuleSetUsed, setGuaranteePag, setKnowledge, setMaxDiscriminatingPathLength, setUseMaxP, setVerbose
-
Constructor Details
-
GraspFci
Constructs a new GraspFci object.- Parameters:
test- The independence test.score- aScoreobject
-
-
Method Details
-
getMarkovCpdag
Description copied from class:StarFciReturns a Markov CPDAG to use as the initial graph in the Star-FCI search.- Specified by:
getMarkovCpdagin classStarFci- Returns:
- This CPDAG.
- Throws:
InterruptedException- if interrupted.
-
setNumStarts
public void setNumStarts(int numStarts) Sets the number of starts for GRaSP.- Parameters:
numStarts- The number of starts.
-
setUseRaskuttiUhler
public void setUseRaskuttiUhler(boolean useRaskuttiUhler) Sets whether to use Raskutti and Uhler's modification of GRaSP.- Parameters:
useRaskuttiUhler- True, if so.
-
setUseDataOrder
public void setUseDataOrder(boolean useDataOrder) Sets whether to use data order for GRaSP (as opposed to random order) for the first step of GRaSP- Parameters:
useDataOrder- True, if so.
-
setUseScore
public void setUseScore(boolean useScore) Sets whether to use score for GRaSP (as opposed to independence test) for GRaSP.- Parameters:
useScore- True, if so.
-
setSingularDepth
public void setSingularDepth(int uncoveredDepth) Sets depth for singular tucks.- Parameters:
uncoveredDepth- The depth for singular tucks.
-
setNonSingularDepth
public void setNonSingularDepth(int nonSingularDepth) Sets depth for non-singular tucks.- Parameters:
nonSingularDepth- The depth for non-singular tucks.
-
setOrdered
public void setOrdered(boolean ordered) Sets whether to use the ordered version of GRaSP.- Parameters:
ordered- True, if so.
-
setSeed
public void setSeed(long seed) Setter for the field
seed.- Parameters:
seed- a long
-
setDepth
public void setDepth(int depth) Sets the depth for the search algorithm.
-