Description Usage Arguments Details Value Author(s) See Also Examples
After running bsSCAD, bsPAMR or bsRFBORUTA
,
the final feature ranking is shown as egg-shaped graph using this
function.
1 |
res_bstr |
Result list from PAMR, SCAD or RF_Boruta bootstrapping. |
SUBDIR |
Where to store the output. If NULL, the importance graph is plotted to the standard plotting device. |
prob |
Quantile in [0,1], defines the cutoff, at which frequency of cooccuring features an edge will be drawn between the two features in the importance graph. |
For any bootstrapping feature selection a result list is generated. The observed feature sets during all of the bootstrapping runs are combined into a graph representing the number of occurrences of a feature as nodes, as well as the cooccurrences of pairs of features as edges. The width of the nodes is proportional to their frequency of occurrence, the width of the edges proportional to the number of cooccurrences of two features in all boostrapping feature sets. Edges are drawn for the top 10
A list with three elements:
allsignatures |
All bootstrapping feature sets. |
allprots |
Union of all features that occur in any feature set. |
adj |
An adjacency matrix with the counts of (co)occurrences. |
Christian Bender (christian.bender@tron-mainz.de)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ## Not run:
# library(bootfs)
set.seed(1234)
data <- simDataSet(nsam=30, ngen=100, sigma=2, plot=TRUE)
logX <- data$logX
groupings <- data$groupings
## run the bootstrapping
retBS <- doBS(logX, groupings,
fs.methods=c("pamr","scad","rf_boruta"),
DIR="bs",
seed=123, bstr=5, saveres=FALSE, jitter=FALSE,
maxiter=100, maxevals=50, bounds=NULL,
max_allowed_feat=NULL, n.threshold=50,
maxRuns=30)
## summarize a single bootstrapping run into an importance graph
bsres <- makeIG(retBS[[1]], SUBDIR=NULL, prob=.975)
## remove the created directory
system("rm -rf bs")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.