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.void
Sets the independence wrapper for the algorithm.void
setKnowledge
(Knowledge knowledge) Sets the knowledge associated with this object.void
setScoreWrapper
(ScoreWrapper score) Sets the score wrapper for the algorithm.Methods inherited from class edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
getBootstrapGraphs, search
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface edu.cmu.tetrad.algcomparison.algorithm.ReturnsBootstrapGraphs
getBootstrapGraphs
-
Constructor Details
-
SvarGfci
public SvarGfci()Constructor for SvarGfci.
-
SvarGfci
Constructor for SvarGfci.
- Parameters:
type
- aIndependenceWrapper
objectscore
- aScoreWrapper
object
-
-
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:
getComparisonGraph
in interfaceAlgorithm
- Parameters:
graph
- The true directed graph, if there is one.- Returns:
- The comparison graph.
-
getDescription
Returns a description of this method.- Specified by:
getDescription
in interfaceAlgorithm
- Returns:
- The description of this method.
-
getDataType
Returns the data type that this method requires, whether continuous, discrete, or mixed.- Specified by:
getDataType
in 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:
getParameters
in interfaceHasParameters
- Returns:
- the list of parameters required by this method
-
getKnowledge
Returns the knowledge associated with this object.- Specified by:
getKnowledge
in interfaceHasKnowledge
- Returns:
- The knowledge object.
-
setKnowledge
Sets the knowledge associated with this object.- Specified by:
setKnowledge
in interfaceHasKnowledge
- Parameters:
knowledge
- the knowledge object to set
-
getIndependenceWrapper
Retrieves the IndependenceWrapper object associated with this algorithm.- Specified by:
getIndependenceWrapper
in interfaceTakesIndependenceWrapper
- Returns:
- The IndependenceWrapper object.
-
setIndependenceWrapper
Sets the independence wrapper for the algorithm.- Specified by:
setIndependenceWrapper
in interfaceTakesIndependenceWrapper
- Parameters:
test
- the independence wrapper to set
-
getScoreWrapper
Retrieves the ScoreWrapper object associated with this algorithm.- Specified by:
getScoreWrapper
in interfaceUsesScoreWrapper
- Returns:
- The ScoreWrapper object.
-
setScoreWrapper
Sets the score wrapper for the algorithm.- Specified by:
setScoreWrapper
in interfaceUsesScoreWrapper
- Parameters:
score
- the score wrapper to set
-