Class Mgm
java.lang.Object
edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
edu.cmu.tetrad.algcomparison.algorithm.mixed.Mgm
- All Implemented Interfaces:
Algorithm
,ReturnsBootstrapGraphs
,HasParameters
,TetradSerializable
,Serializable
@Algorithm(name="MGM",
command="mgm",
algoType=produce_undirected_graphs)
@Bootstrapping
public class Mgm
extends AbstractBootstrapAlgorithm
implements Algorithm
MGM.
- Version:
- $Id: $Id
- Author:
- josephramsey
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetComparisonGraph
(Graph graph) Returns the comparison graph for the given true directed graph.Retrieves the data type required by the search algorithm.Returns a short, one-line description of this algorithm.Returns the list of parameters required by the getParameters method.runSearch
(DataModel dataModel, Parameters parameters) Runs the MGM search algorithm.Methods inherited from class edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
getBootstrapGraphs, search
-
Constructor Details
-
Mgm
public Mgm()Constructor for Mgm.
-
-
Method Details
-
runSearch
Runs the MGM search algorithm.- Parameters:
dataModel
- The data model containing the dataset.parameters
- The parameters for running the search.- Returns:
- The graph obtained from the MGM search algorithm.
- Throws:
IllegalArgumentException
- If the data model does not contain tabular data, if the dataset is not mixed (contains at least one discrete column and at least one continuous column), or if missing values are present.
-
getComparisonGraph
Returns the comparison graph for the given true directed graph.- Specified by:
getComparisonGraph
in interfaceAlgorithm
- Parameters:
graph
- The true directed graph, if there is one.- Returns:
- The comparison graph, an undirected version of the true directed graph.
-
getDescription
Returns a short, one-line description of this algorithm. This will be printed in the report.- Specified by:
getDescription
in interfaceAlgorithm
- Returns:
- The description of the algorithm.
-
getDataType
Retrieves the data type required by the search algorithm.- Specified by:
getDataType
in interfaceAlgorithm
- Returns:
- The data type required by the search algorithm.
-
getParameters
Returns the list of parameters required by the getParameters method.- Specified by:
getParameters
in interfaceHasParameters
- Returns:
- List of parameters as strings.
-