Class SvarGfci
java.lang.Object
edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
edu.cmu.tetrad.algcomparison.algorithm.oracle.pag.SvarGfci
- All Implemented Interfaces:
Algorithm,ReturnsBootstrapGraphs,TakesCovarianceMatrix,HasKnowledge,HasParameters,TakesIndependenceWrapper,UsesScoreWrapper,TetradSerializable,Serializable
@Algorithm(name="SvarGFCI",
command="svar-gfci",
algoType=allow_latent_common_causes)
@TimeSeries
@Bootstrapping
public class SvarGfci
extends AbstractBootstrapAlgorithm
implements Algorithm, HasKnowledge, TakesIndependenceWrapper, UsesScoreWrapper, ReturnsBootstrapGraphs, TakesCovarianceMatrix
SvarGfci class is an implementation of the SVAR GFCI algorithm. It is used to learn causal relationships from time
series data.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSvarGfci()Constructor for SvarGfci.SvarGfci(IndependenceWrapper type, ScoreWrapper score) Constructor for SvarGfci. -
Method Summary
Modifier and TypeMethodDescriptiongetComparisonGraph(Graph graph) Returns a comparison graph based on the given true directed graph.Returns the data type that this method requires, whether continuous, discrete, or mixed.Returns a description of this method.Retrieves the IndependenceWrapper object associated with this algorithm.Returns the knowledge associated with this object.Returns the list of parameters required by this method.Retrieves the ScoreWrapper object associated with this algorithm.runSearch(DataModel dataModel, Parameters parameters) Runs a search algorithm on the given data set using the specified parameters.voidSets the independence wrapper for the algorithm.voidsetKnowledge(Knowledge knowledge) Sets the knowledge associated with this object.voidsetScoreWrapper(ScoreWrapper score) Sets the score wrapper for the algorithm.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
-
SvarGfci
public SvarGfci()Constructor for SvarGfci.
-
SvarGfci
Constructor for SvarGfci.
- Parameters:
type- aIndependenceWrapperobjectscore- aScoreWrapperobject
-
-
Method Details
-
runSearch
Runs a search algorithm on the given data set using the specified parameters.- Parameters:
dataModel- the data set containing the variables to search overparameters- the parameters specifying the search configuration- Returns:
- the resulting graph representing the discovered relationships
- Throws:
InterruptedException
-
getComparisonGraph
Returns a comparison graph based on 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 a description of this method.- Specified by:
getDescriptionin interfaceAlgorithm- Returns:
- The description of this method.
-
getDataType
Returns the data type that this method requires, whether continuous, discrete, or mixed.- Specified by:
getDataTypein interfaceAlgorithm- Returns:
- The data type required by this method.
-
getParameters
Returns the list of parameters required by this method. The parameters include: - FAITHFULNESS_ASSUMED - MAX_INDEGREE - TIME_LAG - VERBOSE- Specified by:
getParametersin interfaceHasParameters- Returns:
- the list of parameters required by this method
-
getKnowledge
Returns the knowledge associated with this object.- Specified by:
getKnowledgein interfaceHasKnowledge- Returns:
- The knowledge object.
-
setKnowledge
Sets the knowledge associated with this object.- Specified by:
setKnowledgein interfaceHasKnowledge- Parameters:
knowledge- the knowledge object to set
-
getIndependenceWrapper
Retrieves the IndependenceWrapper object associated with this algorithm.- Specified by:
getIndependenceWrapperin interfaceTakesIndependenceWrapper- Returns:
- The IndependenceWrapper object.
-
setIndependenceWrapper
Sets the independence wrapper for the algorithm.- Specified by:
setIndependenceWrapperin interfaceTakesIndependenceWrapper- Parameters:
test- the independence wrapper to set
-
getScoreWrapper
Retrieves the ScoreWrapper object associated with this algorithm.- Specified by:
getScoreWrapperin interfaceUsesScoreWrapper- Returns:
- The ScoreWrapper object.
-
setScoreWrapper
Sets the score wrapper for the algorithm.- Specified by:
setScoreWrapperin interfaceUsesScoreWrapper- Parameters:
score- the score wrapper to set
-