Class Ccd
java.lang.Object
edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
edu.cmu.tetrad.algcomparison.algorithm.oracle.pag.Ccd
- All Implemented Interfaces:
Algorithm,LatentStructureAlgorithm,ReturnsBootstrapGraphs,TakesCovarianceMatrix,HasKnowledge,HasParameters,TakesIndependenceWrapper,TetradSerializable,Serializable
@Algorithm(name="CCD",
command="ccd",
algoType=forbid_latent_common_causes)
@Bootstrapping
public class Ccd
extends AbstractBootstrapAlgorithm
implements Algorithm, TakesIndependenceWrapper, ReturnsBootstrapGraphs, TakesCovarianceMatrix, LatentStructureAlgorithm, HasKnowledge
CCD (Cyclic Causal Discovery)
- Version:
- $Id: $Id
- Author:
- josephramsey
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCcd()Constructs a new CCD algorithm.Ccd(IndependenceWrapper test) Constructs a new CCD algorithm with the given independence test. -
Method Summary
Modifier and TypeMethodDescriptiongetComparisonGraph(Graph graph) Retrieves the comparison graph for the given true directed graph.Retrieves the data type that the search requires.Returns a short, one-line description of this algorithm.Returns the IndependenceWrapper object associated with this instance.Retrieves the knowledge object associated with this instance.Retrieves the parameters for the search algorithm.runSearch(DataModel dataModel, Parameters parameters) Runs the CCD (Cyclic Causal Discovery) search algorithm on the given data set using the specified parameters.voidsetIndependenceWrapper(IndependenceWrapper independenceWrapper) Updates the independence wrapper for this algorithm.voidsetKnowledge(Knowledge knowledge) Sets the knowledge object for this instance.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
-
Ccd
public Ccd()Constructs a new CCD algorithm. -
Ccd
Constructs a new CCD algorithm with the given independence test.- Parameters:
test- the independence test
-
-
Method Details
-
runSearch
Runs the CCD (Cyclic Causal Discovery) search algorithm on the given data set using the specified parameters.- Parameters:
dataModel- the data set to search onparameters- the parameters for the search algorithm- Returns:
- the resulting graph from the search
- Throws:
InterruptedException
-
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 true DAG.
-
getDescription
Returns a short, one-line description of this algorithm. This description will be printed in the report.- Specified by:
getDescriptionin interfaceAlgorithm- Returns:
- The description of this algorithm.
-
getDataType
Retrieves the data type that the search requires.- Specified by:
getDataTypein interfaceAlgorithm- Returns:
- The data type required by the search.
-
getParameters
Retrieves the parameters for the search algorithm. This method combines the parameters obtained from the underlying test with additional parameters specific to the CCD (Cyclic Causal Discovery) algorithm.- Specified by:
getParametersin interfaceHasParameters- Returns:
- A list of String names for parameters.
-
getIndependenceWrapper
Returns the IndependenceWrapper object associated with this instance.- Specified by:
getIndependenceWrapperin interfaceTakesIndependenceWrapper- Returns:
- the IndependenceWrapper object
-
setIndependenceWrapper
Updates the independence wrapper for this algorithm.- Specified by:
setIndependenceWrapperin interfaceTakesIndependenceWrapper- Parameters:
independenceWrapper- the independence wrapper to set
-
getKnowledge
Retrieves the knowledge object associated with this instance. The knowledge object typically contains prior knowledge or constraints to guide the algorithm's behavior.- Specified by:
getKnowledgein interfaceHasKnowledge- Returns:
- the
Knowledgeobject associated with this instance
-
setKnowledge
Sets the knowledge object for this instance. The knowledge object typically contains prior assumptions or constraints to guide the algorithm's behavior.- Specified by:
setKnowledgein interfaceHasKnowledge- Parameters:
knowledge- theKnowledgeobject to set; this object encapsulates domain-specific knowledge or constraints relevant to the algorithm.
-