Class FaskVote
- All Implemented Interfaces:
Algorithm, MultiDataSetAlgorithm, AcceptsKnowledge, HasParameters, TakesExternalGraph, TakesScoreWrapper, TetradSerializable, Serializable
Requires that the parameter 'randomSelectionSize' be set to indicate how many datasets should be taken at a time (randomly). This cannot given multiple values.
- Version:
- $Id: $Id
- Author:
- mglymour, josephramsey
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFaskVote()Constructor for FaskVote.FaskVote(ScoreWrapper score) Constructor for FaskVote. -
Method Summary
Modifier and TypeMethodDescriptiongetComparisonGraph(Graph graph) Returns that graph that the result should be compared to.Returns the data type that the search requires, whether continuous, discrete, or mixed.Returns a short, one-line description of this algorithm.Returns a knowledge object.Returns the list of parameter names that are used.Returns the score wrapper.search(DataModel dataSet, Parameters parameters) Runs the search.search(List<DataModel> dataSets, Parameters parameters) Runs the search.voidsetExternalGraph(Algorithm algorithm) setExternalGraph.voidsetKnowledge(Knowledge knowledge) Sets a knowledge object.voidsetScoreWrapper(ScoreWrapper score) Sets a score wrapper if not null.
-
Constructor Details
-
FaskVote
public FaskVote()Constructor for FaskVote.
-
FaskVote
Constructor for FaskVote.
- Parameters:
score- aScoreWrapperobject
-
-
Method Details
-
search
Runs the search.- Specified by:
searchin interfaceMultiDataSetAlgorithm- Parameters:
dataSets- The data sets.parameters- The parameters.- Returns:
- The graph.
- Throws:
InterruptedException- if any.
-
search
Runs the search.- Specified by:
searchin interfaceAlgorithm- Parameters:
dataSet- The data set to run to the search on.parameters- The paramters of the search.- Returns:
- The result graph.
- Throws:
InterruptedException- if any.
-
getComparisonGraph
Returns that graph that the result should be compared to.- Specified by:
getComparisonGraphin interfaceAlgorithm- Parameters:
graph- The true directed graph, if there is one.- Returns:
- The comparison graph.
-
getDescription
Returns a short, one-line description of this algorithm. This will be printed in the report.- Specified by:
getDescriptionin interfaceAlgorithm- Returns:
- This description.
-
getDataType
Returns the data type that the search requires, whether continuous, discrete, or mixed.- Specified by:
getDataTypein interfaceAlgorithm- Returns:
- This type.
-
getParameters
Returns the list of parameter names that are used. These are looked up in ParamMap, so if they're notReturns the IMaGES parameters, minus OUTPUT_CPDAG (only adjacencies are used from the adjacency-stage graph), plus the adjacency-method parameters shared with FASK-Pool (FASK_POOL_ADJACENCY selects the adjacency search; ALPHA and DEPTH govern the FAS-style tests; THRESHOLD_B and the FastICA parameters govern the LiNG stage) and SKEW_EDGE_THRESHOLD, which the per-dataset FASK runs use.
- Specified by:
getParametersin interfaceHasParameters- Returns:
- Returns the list of parameter names that are used. These are looked up in ParamMap, so if they're not already defined they'll need to be defined there.
-
setExternalGraph
setExternalGraph.
Sets the algorithm supplying the external graph (in the GUI, the source graph of a parent graph box). Null is accepted: the external graph is optional for FASK-Vote, and without one the adjacency search selected by FASK_POOL_ADJACENCY runs as before.
- Specified by:
setExternalGraphin interfaceTakesExternalGraph- Parameters:
algorithm- aAlgorithmobject
-
getKnowledge
Returns a knowledge object.- Specified by:
getKnowledgein interfaceAcceptsKnowledge- Returns:
- a knowledge object.
-
setKnowledge
Sets a knowledge object.- Specified by:
setKnowledgein interfaceAcceptsKnowledge- Parameters:
knowledge- a knowledge object.
-
getScoreWrapper
Returns the score wrapper.- Specified by:
getScoreWrapperin interfaceTakesScoreWrapper- Returns:
- the score wrapper.
-
setScoreWrapper
Sets a score wrapper if not null.- Specified by:
setScoreWrapperin interfaceMultiDataSetAlgorithm- Specified by:
setScoreWrapperin interfaceTakesScoreWrapper- Parameters:
score- The wrapper
-