Class GraspFci

java.lang.Object
edu.cmu.tetrad.search.StarFci
edu.cmu.tetrad.search.GraspFci
All Implemented Interfaces:
IGraphSearch

public final class GraspFci extends StarFci
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 Details

    • GraspFci

      public GraspFci(IndependenceTest test, Score score)
      Constructs a new GraspFci object.
      Parameters:
      test - The independence test.
      score - a Score object
  • Method Details

    • getMarkovCpdag

      @NotNull public @NotNull Graph getMarkovCpdag() throws InterruptedException
      Description copied from class: StarFci
      Returns a Markov CPDAG to use as the initial graph in the Star-FCI search.
      Specified by:
      getMarkovCpdag in class StarFci
      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.
      Overrides:
      setDepth in class StarFci
      Parameters:
      depth - The depth value to set for the search algorithm.