Description Usage Arguments Details Value Examples
Runs the SBFC algorithm on a discretized data set. To discretize your data, use the data_disc command.
1 2 3 4 5 6 7 8 9 10 11 |
data |
Discretized data set:
|
nstep |
Number of MCMC steps, default max(10000, 10 * ncol(TrainX)). |
thin |
Thinning factor for the MCMC. |
burnin_denom |
Denominator of the fraction of total MCMC steps discarded as burnin (default=5). |
cv |
Do cross-validation on the training set (if test set is not provided). |
thinoutputs |
Return thinned MCMC outputs (parents, groups, trees, logposterior), rather than all outputs (default=FALSE). |
alpha |
Dirichlet hyperparameter(default=1) |
y_penalty |
Prior coefficient for y-edges, which penalizes signal group size (default=1) |
x_penalty |
Prior coefficient for x-edges, which penalizes tree size (default=4) |
Data needs to be discretized before running SBFC.
If the test data matrix TestX is provided, SBFC runs on the entire training set TrainX, and provides predicted class labels for the test data.
If the test data class vector TestY is provided, the accuracy is computed.
If the test data matrix TestX is not provided, and cv is set to TRUE, SBFC performs cross-validation on the training data set TrainX,
and returns predicted classes and accuracy for the training data.
An object of class sbfc:
accuracyClassification accuracy (on the test set if provided, otherwise cross-validation accuracy on training set).
predictionsVector of class label predictions (for the test set if provided, otherwise for the training set).
probabilitiesMatrix of class label probabilities (for the test set if provided, otherwise for the training set).
runtimeTotal runtime of the algorithm in seconds.
parentsMatrix representing the structures sampled by MCMC, where parents[i,j] is the index of the parent of node j at iteration i (0 if node is a root).
groupsMatrix representing the structures sampled by MCMC, where groups[i,j] indicates which group node j belongs to at iteration j (0 is noise, 1 is signal).
treesMatrix representing the structures sampled by MCMC, where trees[i,j] indicates which tree node j belongs to at iteration j.
logposteriorVector representing the log posterior at each iteration of the MCMC.
nstep, thin, burnin_denom, cv, thinoutputs, alpha, y_penalty, x_penalty.
If cv=TRUE, the MCMC samples from the first fold are returned (parents, groups, trees, logposterior).
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.