Class RfciBsc
java.lang.Object
edu.pitt.dbmi.algo.bayesian.constraint.search.RfciBsc
- All Implemented Interfaces:
IGraphSearch
Dec 17, 2018 3:28:15 PM
- Version:
- $Id: $Id
- Author:
- Chirayu Kong Wongchokprasitti, PhD (chw20@pitt.edu)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
getBscD()
Returns the BSC-D score.double
getBscI()
Returns the BSC-I score.Returns the graph that was learned using the BSC-D method.Returns the graph that was learned using the BSC-I method.getOut()
Getter for the fieldout
.search()
Runs the search and returns a graph.void
setCutoffConstrainSearch
(double cutoffConstrainSearch) Setter for the fieldcutoffConstrainSearch
.void
setCutoffDataSearch
(double cutoffDataSearch) Setter for the fieldcutoffDataSearch
.void
setLowerBound
(double lowerBound) Sets the lower bound.void
setNumBscBootstrapSamples
(int numBscBootstrapSamples) Sets the number of bootstrap samples.void
setNumRandomizedSearchModels
(int numRandomizedSearchModels) Sets the number of randomized search models.void
setOut
(PrintStream out) Sets the output stream that output (except for log output) should be sent to.void
setOutputRBD
(boolean outputRBD) Sets whether the output should be RBD.void
setThresholdNoRandomConstrainSearch
(boolean thresholdNoRandomConstrainSearch) Setter for the fieldthresholdNoRandomConstrainSearch
.void
setThresholdNoRandomDataSearch
(boolean thresholdNoRandomDataSearch) Setter for the fieldthresholdNoRandomDataSearch
.void
setUpperBound
(double upperBound) Sets the upper bound.void
setVerbose
(boolean verbose) Sets whether verbose output should be produced.
-
Constructor Details
-
RfciBsc
Constructor for RfciBsc.
- Parameters:
rfci
- aRfci
object
-
-
Method Details
-
search
Runs the search and returns a graph.Performs the search.
- Specified by:
search
in interfaceIGraphSearch
- Returns:
- The discovered graph.
-
setNumRandomizedSearchModels
public void setNumRandomizedSearchModels(int numRandomizedSearchModels) Sets the number of randomized search models.- Parameters:
numRandomizedSearchModels
- the number of randomized search models.
-
setNumBscBootstrapSamples
public void setNumBscBootstrapSamples(int numBscBootstrapSamples) Sets the number of bootstrap samples.- Parameters:
numBscBootstrapSamples
- the number of bootstrap samples.
-
setLowerBound
public void setLowerBound(double lowerBound) Sets the lower bound.- Parameters:
lowerBound
- the lower bound.
-
setUpperBound
public void setUpperBound(double upperBound) Sets the upper bound.- Parameters:
upperBound
- the upper bound.
-
setOutputRBD
public void setOutputRBD(boolean outputRBD) Sets whether the output should be RBD.- Parameters:
outputRBD
- true if the output should be RBD.
-
getGraphRBD
Returns the graph that was learned using the BSC-D method.- Returns:
- a
Graph
object
-
getGraphRBI
Returns the graph that was learned using the BSC-I method.- Returns:
- the graph that was learned using the BSC-I method.
-
getBscD
public double getBscD()Returns the BSC-D score.- Returns:
- the BSC-D score.
-
getBscI
public double getBscI()Returns the BSC-I score.- Returns:
- the BSC-I score.
-
setVerbose
public void setVerbose(boolean verbose) Sets whether verbose output should be produced.- Parameters:
verbose
- true if verbose output should be produced.
-
getOut
Getter for the field
out
.- Returns:
- the output stream that output (except for log output) should be sent to.
-
setOut
Sets the output stream that output (except for log output) should be sent to. By detault System.out.- Parameters:
out
- the output stream that output (except for log output) should be sent to.
-
setThresholdNoRandomDataSearch
public void setThresholdNoRandomDataSearch(boolean thresholdNoRandomDataSearch) Setter for the field
thresholdNoRandomDataSearch
.- Parameters:
thresholdNoRandomDataSearch
- the thresholdNoRandomDataSearch to set
-
setCutoffDataSearch
public void setCutoffDataSearch(double cutoffDataSearch) Setter for the field
cutoffDataSearch
.- Parameters:
cutoffDataSearch
- the cutoffDataSearch to set
-
setThresholdNoRandomConstrainSearch
public void setThresholdNoRandomConstrainSearch(boolean thresholdNoRandomConstrainSearch) Setter for the field
thresholdNoRandomConstrainSearch
.- Parameters:
thresholdNoRandomConstrainSearch
- the thresholdNoRandomConstrainSearch to set
-
setCutoffConstrainSearch
public void setCutoffConstrainSearch(double cutoffConstrainSearch) Setter for the field
cutoffConstrainSearch
.- Parameters:
cutoffConstrainSearch
- the cutoffConstrainSearch to set
-