barplot_fs: Visualization of 'ensemble_fs' in barplot

Description Usage Arguments Author(s) See Also Examples

Description

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).

Usage

1
barplot_fs(name, efs_table, order = TRUE)

Arguments

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 ensemble_fs)

order

a logical value indicating whether the bars should be sorted in descending order or not

Author(s)

Ursula Neumann

See Also

barplot, pdf

Examples

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)

Example output

[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 

EFS documentation built on May 2, 2019, 9:58 a.m.

Related to barplot_fs in EFS...