Class LvDumb

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

public final class LvDumb extends Object implements IGraphSearch
LV-Dumb is a class that implements the IGraphSearch interface. The LV-Dumb algorithm finds the BOSS DAG for the dataset and then simply reports the PAG (Partially Ancestral Graph) structure of the BOSS DAG, without doing any further latent variable reasoning.
Author:
josephramsey
  • Constructor Summary

    Constructors
    Constructor
    Description
    LvDumb(Score score)
    LV-Lite constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    Run the search and return s a PAG.
    void
    setCompleteRuleSetUsed(boolean completeRuleSetUsed)
    Sets whether the complete rule set should be used during the search algorithm.
    void
    Sets the knowledge used in search.
    void
    setNumStarts(int numStarts)
    Sets the number of starts for BOSS.
    void
    setUseBes(boolean useBes)
    Sets whether to use the BES (Backward Elimination Search) algorithm during the search.
    void
    setUseDataOrder(boolean useDataOrder)
    Sets whether the search algorithm should use the order of the data set during the search.
    void
    setVerbose(boolean verbose)
    Sets the verbosity level of the search algorithm.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LvDumb

      public LvDumb(Score score)
      LV-Lite constructor. Initializes a new object of LvLite search algorithm with the given IndependenceTest and Score object.
      Parameters:
      score - The Score object to be used for scoring DAGs.
      Throws:
      NullPointerException - if score is null.
  • Method Details

    • search

      public Graph search()
      Run the search and return s a PAG.
      Specified by:
      search in interface IGraphSearch
      Returns:
      The PAG.
    • setKnowledge

      public void setKnowledge(Knowledge knowledge)
      Sets the knowledge used in search.
      Parameters:
      knowledge - This knowledge.
    • setCompleteRuleSetUsed

      public void setCompleteRuleSetUsed(boolean completeRuleSetUsed)
      Sets whether the complete rule set should be used during the search algorithm. By default, the complete rule set is not used.
      Parameters:
      completeRuleSetUsed - true if the complete rule set should be used, false otherwise
    • setVerbose

      public void setVerbose(boolean verbose)
      Sets the verbosity level of the search algorithm.
      Parameters:
      verbose - true to enable verbose mode, false to disable it
    • setNumStarts

      public void setNumStarts(int numStarts)
      Sets the number of starts for BOSS.
      Parameters:
      numStarts - The number of starts.
    • setUseDataOrder

      public void setUseDataOrder(boolean useDataOrder)
      Sets whether the search algorithm should use the order of the data set during the search.
      Parameters:
      useDataOrder - true if the algorithm should use the data order, false otherwise
    • setUseBes

      public void setUseBes(boolean useBes)
      Sets whether to use the BES (Backward Elimination Search) algorithm during the search.
      Parameters:
      useBes - true to use the BES algorithm, false otherwise