java.lang.Object
edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
edu.cmu.tetrad.algcomparison.algorithm.oracle.cpdag.TwoStep
All Implemented Interfaces:
Algorithm, ReturnsBootstrapGraphs, HasParameters, TetradSerializable, Serializable

@Algorithm(name="Two-Step (FastICA, cyclic)", command="twostep", algoType=forbid_latent_common_causes) @Deprecated @Bootstrapping public class TwoStep extends AbstractBootstrapAlgorithm implements Algorithm
Deprecated.
Wrapper for the Two-Step algorithm (ICA-based, allows cycles) using FastIca. Returns the directed graph and prints the B matrix to stdout.
See Also:
  • Constructor Details

    • TwoStep

      public TwoStep()
      Deprecated.
      Default constructor for the TwoStep class.

      Initializes an instance of the TwoStep algorithm with no additional parameters.

  • Method Details

    • getComparisonGraph

      public Graph getComparisonGraph(Graph graph)
      Deprecated.
      Returns the given graph for comparison purposes. The method assumes that the graph input is prepared for a two-step algorithm and may contain cycles, which are retained in the returned graph.
      Specified by:
      getComparisonGraph in interface Algorithm
      Parameters:
      graph - the input graph to be used for comparison, which may include cycles
      Returns:
      the same graph object that was passed as input, unaltered
    • getDescription

      public String getDescription()
      Deprecated.
      Provides a description of the Two-Step algorithm, which is based on FastICA and supports cycles in continuous data.
      Specified by:
      getDescription in interface Algorithm
      Returns:
      a string representation of the Two-Step algorithm description
    • getDataType

      public DataType getDataType()
      Deprecated.
      Returns the data type associated with the TwoStep algorithm. This implementation specifies that the data type is continuous.
      Specified by:
      getDataType in interface Algorithm
      Returns:
      the data type, which is DataType.Continuous
    • getParameters

      public List<String> getParameters()
      Deprecated.
      Retrieves the list of parameters associated with the algorithm's configuration.
      Specified by:
      getParameters in interface HasParameters
      Returns:
      a list of parameter names as strings. If no parameters are defined, this method returns an empty list.
    • getKnowledge

      public Knowledge getKnowledge()
      Deprecated.
      Retrieves the current knowledge associated with the TwoStep algorithm. The knowledge represents constraints or prior information that guide the structure search during the algorithm's execution.
      Returns:
      the current Knowledge object associated with this instance
    • setKnowledge

      public void setKnowledge(Knowledge knowledge)
      Deprecated.
      Sets the knowledge object for the TwoStep algorithm. The knowledge represents user-provided constraints or prior information that guide the structure search during the algorithm's execution.
      Parameters:
      knowledge - the Knowledge object to be set. This object encapsulates constraints or prior information to be used by the algorithm.