Class Gmas
java.lang.Object
edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
edu.cmu.tetrad.algcomparison.algorithm.oracle.pag.Gmas
- All Implemented Interfaces:
Algorithm, LatentStructureAlgorithm, ReturnsBootstrapGraphs, TakesCovarianceMatrix, AcceptsKnowledge, HasParameters, TakesScoreWrapper, TetradSerializable, Serializable
@Algorithm(name="GMAS",
command="gmas",
algoType=allow_latent_common_causes)
@Bootstrapping
@Experimental
public class Gmas
extends AbstractBootstrapAlgorithm
implements Algorithm, TakesScoreWrapper, AcceptsKnowledge, ReturnsBootstrapGraphs, TakesCovarianceMatrix, LatentStructureAlgorithm
GMAS: a latent-variable search that uses no independence tests. A BOSS CPDAG is projected to a PAG and then
to its Zhang MAG, and that MAG is improved by steepest-ascent greedy search under the Gaussian MAG BIC, moving
only among legal MAGs, with deletion, reversal, type change (directed to bidirected and back), and addition as
moves. The final MAG is projected back to a PAG.
- Author:
- josephramsey
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGmas()Used for reflection; do not delete.Gmas(ScoreWrapper score) Constructs a GMAS algorithm with the given score. -
Method Summary
Modifier and TypeMethodDescriptiongetComparisonGraph(Graph graph) Returns the comparison graph, the PAG of the true DAG.Returns the data type required.Returns a short description of this algorithm.Returns the knowledge.Returns the parameters used.Returns the score wrapper.runSearch(DataModel dataModel, Parameters parameters) Runs the search.voidsetKnowledge(Knowledge knowledge) Sets the knowledge.voidsetScoreWrapper(ScoreWrapper score) Sets the score wrapper.Methods inherited from class AbstractBootstrapAlgorithm
getBootstrapGraphs, searchMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ReturnsBootstrapGraphs
getBootstrapGraphs
-
Constructor Details
-
Gmas
public Gmas()Used for reflection; do not delete. -
Gmas
Constructs a GMAS algorithm with the given score.- Parameters:
score- The score to use.
-
-
Method Details
-
runSearch
Runs the search.- Parameters:
dataModel- The data model.parameters- The parameters.- Returns:
- The estimated PAG.
- Throws:
InterruptedException
-
getComparisonGraph
Returns the comparison graph, the PAG of the true DAG.- Specified by:
getComparisonGraphin interfaceAlgorithm- Parameters:
graph- The true directed graph, if there is one.- Returns:
- The comparison graph.
-
getDescription
Returns a short description of this algorithm.- Specified by:
getDescriptionin interfaceAlgorithm- Returns:
- The description.
-
getDataType
Returns the data type required.- Specified by:
getDataTypein interfaceAlgorithm- Returns:
- The data type.
-
getParameters
Returns the parameters used.- Specified by:
getParametersin interfaceHasParameters- Returns:
- The parameters.
-
getKnowledge
Returns the knowledge.- Specified by:
getKnowledgein interfaceAcceptsKnowledge- Returns:
- The knowledge.
-
setKnowledge
Sets the knowledge.- Specified by:
setKnowledgein interfaceAcceptsKnowledge- Parameters:
knowledge- The knowledge.
-
getScoreWrapper
Returns the score wrapper.- Specified by:
getScoreWrapperin interfaceTakesScoreWrapper- Returns:
- The score wrapper.
-
setScoreWrapper
Sets the score wrapper.- Specified by:
setScoreWrapperin interfaceTakesScoreWrapper- Parameters:
score- The score wrapper.
-