Class Dagma
java.lang.Object
edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
edu.cmu.tetrad.algcomparison.algorithm.continuous.dag.Dagma
- All Implemented Interfaces:
Algorithm,ReturnsBootstrapGraphs,HasParameters,TetradSerializable,Serializable
@Algorithm(name="DAGMA",
command="dagma",
algoType=forbid_latent_common_causes,
dataType=Continuous)
@Bootstrapping
public class Dagma
extends AbstractBootstrapAlgorithm
implements Algorithm, ReturnsBootstrapGraphs
Implements the DAGMA algorithm. The reference is here:
Bello, K., Aragam, B., & Ravikumar, P. (2022). Dagma: Learning dags via m-matrices and a log-determinant acyclicity characterization. Advances in Neural Information Processing Systems, 35, 8226-8239.
- Version:
- $Id: $Id
- Author:
- bryanandrews
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetComparisonGraph(Graph graph) Retrieves the comparison graph for the given true directed graph.Retrieves the data type of the algorithm's output.Returns the description of the DAGMA algorithm.Retrieves the list of parameters used by the algorithm.runSearch(DataModel dataModel, Parameters parameters) Runs the DAGMA algorithm to search for a directed acyclic graph (DAG) in the given data model with the specified parameters.Methods inherited from class edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
getBootstrapGraphs, searchMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.cmu.tetrad.algcomparison.algorithm.ReturnsBootstrapGraphs
getBootstrapGraphs
-
Constructor Details
-
Dagma
public Dagma()Constructor for Dagma.
-
-
Method Details
-
runSearch
Runs the DAGMA algorithm to search for a directed acyclic graph (DAG) in the given data model with the specified parameters.- Parameters:
dataModel- The data model to search.parameters- The parameters for the DAGMA algorithm.- Returns:
- The resulting graph, which represents a DAG.
- Throws:
IllegalArgumentException- If the data model is not a continuous dataset.
-
getComparisonGraph
Retrieves the comparison graph for the given true directed graph.- Specified by:
getComparisonGraphin interfaceAlgorithm- Parameters:
graph- The true directed graph, if there is one.- Returns:
- The comparison graph.
-
getDescription
Returns the description of the DAGMA algorithm.- Specified by:
getDescriptionin interfaceAlgorithm- Returns:
- the description of the DAGMA algorithm
-
getDataType
Retrieves the data type of the algorithm's output.- Specified by:
getDataTypein interfaceAlgorithm- Returns:
- The data type of the algorithm's output.
-
getParameters
Retrieves the list of parameters used by the algorithm.- Specified by:
getParametersin interfaceHasParameters- Returns:
- A list of strings representing the parameters used by the algorithm.
-