Class Fask
java.lang.Object
edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
edu.cmu.tetrad.algcomparison.algorithm.continuous.dag.Fask
- All Implemented Interfaces:
- Algorithm,- ReturnsBootstrapGraphs,- HasKnowledge,- HasParameters,- TakesExternalGraph,- UsesScoreWrapper,- TetradSerializable,- Serializable
@Bootstrapping
@Algorithm(name="FASK",
           command="fask",
           algoType=forbid_latent_common_causes,
           dataType=Continuous)
public class Fask
extends AbstractBootstrapAlgorithm
implements Algorithm, HasKnowledge, UsesScoreWrapper, TakesExternalGraph
FASK algorithm.
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionFask()Constructor for Fask.Fask(ScoreWrapper score) Constructs a new Fask object with the given ScoreWrapper.
- 
Method SummaryModifier and TypeMethodDescriptiongetComparisonGraph(Graph graph) Returns a comparison graph based on the true directed graph, if there is one.Retrieves the data type of the dataset.Returns a short, one-line description of the FASK algorithm.Retrieves the knowledge associated with this object.Returns the list of parameter names that are used by the algorithm.Retrieves the ScoreWrapper object associated with this class.runSearch(DataModel dataModel, Parameters parameters) Runs the Fask search algorithm on the given data model with the specified parameters.voidsetExternalGraph(Algorithm algorithm) Sets the external graph to be used by the algorithm.voidsetKnowledge(Knowledge knowledge) Sets the knowledge associated with this object.voidsetScoreWrapper(ScoreWrapper score) Sets the score wrapper for the object.Methods inherited from class edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithmgetBootstrapGraphs, search
- 
Constructor Details- 
Faskpublic Fask()Constructor for Fask. 
- 
FaskConstructs a new Fask object with the given ScoreWrapper.- Parameters:
- score- the ScoreWrapper object to use
 
 
- 
- 
Method Details- 
runSearchRuns the Fask search algorithm on the given data model with the specified parameters.- Parameters:
- dataModel- the data model to run the search on
- parameters- the parameters for the search
- Returns:
- the resulting graph from the search
- Throws:
- IllegalStateException- if the data model is not a DataSet or if there are missing values
- IllegalArgumentException- if there are missing values in the data set
- InterruptedException- if any
 
- 
getComparisonGraphReturns a comparison graph based on the true directed graph, if there is one.- Specified by:
- getComparisonGraphin interface- Algorithm
- Parameters:
- graph- The true directed graph, if there is one.
- Returns:
- A comparison graph.
 
- 
getDescriptionReturns a short, one-line description of the FASK algorithm. This description will be printed in the report.- Specified by:
- getDescriptionin interface- Algorithm
- Returns:
- A short description of the FASK algorithm.
- Throws:
- IllegalStateException- if the FASK algorithm is not initialized with either a test or an algorithm.
 
- 
getDataTypeRetrieves the data type of the dataset.- Specified by:
- getDataTypein interface- Algorithm
- Returns:
- The data type of the dataset.
 
- 
getParametersReturns the list of parameter names that are used by the algorithm. These parameters are looked up in the ParamMap, so if they are not already defined, they will need to be defined there.- Specified by:
- getParametersin interface- HasParameters
- Returns:
- The list of parameter names used by the algorithm.
 
- 
getKnowledgeRetrieves the knowledge associated with this object.- Specified by:
- getKnowledgein interface- HasKnowledge
- Returns:
- The knowledge.
 
- 
setKnowledgeSets the knowledge associated with this object.- Specified by:
- setKnowledgein interface- HasKnowledge
- Parameters:
- knowledge- The knowledge object to be set.
 
- 
setExternalGraphSets the external graph to be used by the algorithm.- Specified by:
- setExternalGraphin interface- TakesExternalGraph
- Parameters:
- algorithm- The algorithm object.
 
- 
getScoreWrapperRetrieves the ScoreWrapper object associated with this class.- Specified by:
- getScoreWrapperin interface- UsesScoreWrapper
- Returns:
- The ScoreWrapper object.
 
- 
setScoreWrapperSets the score wrapper for the object.- Specified by:
- setScoreWrapperin interface- UsesScoreWrapper
- Parameters:
- score- the score wrapper to be set.
 
 
-