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 TypeMethodDescriptiondoublegetBscD()Returns the BSC-D score.doublegetBscI()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.voidsetCutoffConstrainSearch(double cutoffConstrainSearch) Setter for the fieldcutoffConstrainSearch.voidsetCutoffDataSearch(double cutoffDataSearch) Setter for the fieldcutoffDataSearch.voidsetLowerBound(double lowerBound) Sets the lower bound.voidsetNumBscBootstrapSamples(int numBscBootstrapSamples) Sets the number of bootstrap samples.voidsetNumRandomizedSearchModels(int numRandomizedSearchModels) Sets the number of randomized search models.voidsetOut(PrintStream out) Sets the output stream that output (except for log output) should be sent to.voidsetOutputRBD(boolean outputRBD) Sets whether the output should be RBD.voidsetThresholdNoRandomConstrainSearch(boolean thresholdNoRandomConstrainSearch) Setter for the fieldthresholdNoRandomConstrainSearch.voidsetThresholdNoRandomDataSearch(boolean thresholdNoRandomDataSearch) Setter for the fieldthresholdNoRandomDataSearch.voidsetUpperBound(double upperBound) Sets the upper bound.voidsetVerbose(boolean verbose) Sets whether verbose output should be produced.
-
Constructor Details
-
RfciBsc
-
-
Method Details
-
search
Runs the search and returns a graph.Performs the search.
- Specified by:
searchin interfaceIGraphSearch- Returns:
- The discovered graph.
- Throws:
InterruptedException- if any.
-
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
-
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
-