Class TwoStep
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetComparisonGraph(Graph graph) Deprecated.Returns the given graph for comparison purposes.Deprecated.Returns the data type associated with the TwoStep algorithm.Deprecated.Provides a description of the Two-Step algorithm, which is based on FastICA and supports cycles in continuous data.Deprecated.Retrieves the current knowledge associated with the TwoStep algorithm.Deprecated.Retrieves the list of parameters associated with the algorithm's configuration.voidsetKnowledge(Knowledge knowledge) Deprecated.Sets the knowledge object for the TwoStep algorithm.Methods inherited from class edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
getBootstrapGraphs, search
-
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
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:
getComparisonGraphin interfaceAlgorithm- 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
Deprecated.Provides a description of the Two-Step algorithm, which is based on FastICA and supports cycles in continuous data.- Specified by:
getDescriptionin interfaceAlgorithm- Returns:
- a string representation of the Two-Step algorithm description
-
getDataType
Deprecated.Returns the data type associated with the TwoStep algorithm. This implementation specifies that the data type is continuous.- Specified by:
getDataTypein interfaceAlgorithm- Returns:
- the data type, which is
DataType.Continuous
-
getParameters
Deprecated.Retrieves the list of parameters associated with the algorithm's configuration.- Specified by:
getParametersin interfaceHasParameters- Returns:
- a list of parameter names as strings. If no parameters are defined, this method returns an empty list.
-
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
Knowledgeobject associated with this instance
-
setKnowledge
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- theKnowledgeobject to be set. This object encapsulates constraints or prior information to be used by the algorithm.
-