Class RfciBsc
java.lang.Object
edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
edu.cmu.tetrad.algcomparison.algorithm.oracle.pag.RfciBsc
- All Implemented Interfaces:
Algorithm
,ReturnsBootstrapGraphs
,HasKnowledge
,HasParameters
,TetradSerializable
,Serializable
@Algorithm(name="RFCI-BSC",
command="rfci-bsc",
algoType=forbid_latent_common_causes,
dataType=Discrete)
@Experimental
public class RfciBsc
extends AbstractBootstrapAlgorithm
implements Algorithm, HasKnowledge
Runs RFCI-BSC, which is RFCI with bootstrap sampling of PAGs.
- Version:
- $Id: $Id
- Author:
- Chirayu Kong Wongchokprasitti, PhD (chw20@pitt.edu)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetComparisonGraph
(Graph graph) Retrieves the comparison graph from the true directed graph, if there is one.Returns the data type that the search requires, whether continuous, discrete, or mixed.Returns a short, one-line description of this algorithm.Retrieves the knowledge associated with this object.Returns the list of parameter names that are used.runSearch
(DataModel dataModel, Parameters parameters) Runs a search algorithm using a given dataset and parameters.void
setKnowledge
(Knowledge knowledge) Sets the knowledge object.Methods inherited from class edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
getBootstrapGraphs, search
-
Constructor Details
-
RfciBsc
public RfciBsc()Blank constructor.
-
-
Method Details
-
getKnowledge
Retrieves the knowledge associated with this object.- Specified by:
getKnowledge
in interfaceHasKnowledge
- Returns:
- The knowledge.
-
setKnowledge
Sets the knowledge object.- Specified by:
setKnowledge
in interfaceHasKnowledge
- Parameters:
knowledge
- The knowledge object to be set.
-
runSearch
Runs a search algorithm using a given dataset and parameters.- Parameters:
dataModel
- The dataset to run the search on.parameters
- The parameters for the search algorithm.- Returns:
- The resulting graph from the search algorithm.
-
getComparisonGraph
Retrieves the comparison graph from the true directed graph, if there is one.- Specified by:
getComparisonGraph
in interfaceAlgorithm
- Parameters:
graph
- The true directed graph, if there is one.- Returns:
- The true PAG.
-
getDescription
Returns a short, one-line description of this algorithm. This will be printed in the report.Returns the description of the algorithm.
- Specified by:
getDescription
in interfaceAlgorithm
- Returns:
- This description.
-
getDataType
Returns the data type that the search requires, whether continuous, discrete, or mixed.Returns the data type that the algorithm can handle, which is discrete.
- Specified by:
getDataType
in 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 parameters of the algorithm.
- Specified by:
getParameters
in 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.
-