Description Usage Arguments Author(s) See Also Examples
Generates a barplot from
the output of ensemble_fs
and produces
a pdf-file. This file will be located in the working
directory. A barplot will only be provided, when the number
of features does not exceed 100.
x-axis: sum of all normed importance values of each
feature ranging from 0 to 1
y-axis: names of features
If the number of features is greater or equal to 100,
a barplot of the summed up importance over all FS method
is created.
x-axis: features; y-axis: importance values
If order = TRUE
the bars will be ordered in an increasing
order bottom up (i.e., the most important parameter are on top).
1 | barplot_fs(name, efs_table, order = TRUE)
|
name |
a character string giving the name of the file. If it is NULL, then no external file is created (effectively, no drawing occurs), but the device may still be queried. |
efs_table |
a table object of class matrix (retrieved
from |
order |
a logical value indicating whether the bars should be sorted in descending order or not |
Ursula Neumann
barplot, pdf
1 2 3 4 5 6 7 | ## Loading dataset in environment
data(efsdata)
## Generate a ranking based on inportance (with default
## NA_threshold = 0.7,cor_threshold = 0.2)
efs <- ensemble_fs(efsdata ,5 ,runs=2)
## Create a cumulative barplot based on the output from efs
barplot_fs("test", efs, order = TRUE)
|
[1] "default value for NA_threshold = 0.2"
[1] "default value for cor_threshold = 0.7"
[1] "default value for selection is c(TRUE, TRUE, TRUE,TRUE, TRUE, TRUE, FALSE, FALSE)"
[1] "Start Median"
[1] "Start Pearson"
[1] "Start Spearman"
[1] "Start LogReg"
[1] "Start RF"
[1] 1
Time difference of 0.02583909 secs
[1] 2
Time difference of 0.2768514 secs
[1] "Build return matrix"
[1] "Done"
Time difference of 0.3443601 secs
Warning messages:
1: In wilcox.test.default(x, y) : cannot compute exact p-value with ties
2: In wilcox.test.default(x, y) : cannot compute exact p-value with ties
3: In wilcox.test.default(x, y) : cannot compute exact p-value with ties
4: In wilcox.test.default(x, y) : cannot compute exact p-value with ties
5: In wilcox.test.default(x, y) : cannot compute exact p-value with ties
png
2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.