Description Usage Arguments Value Note Author(s) References Examples
Computes the relative significance of each feature and plots it.
1 | map.significance(map, graphics = TRUE, feature.labels = TRUE)
|
map |
an object of type 'map'. |
graphics |
a switch that controls whether a plot is generated or not. |
feature.labels |
a switch to allow the plotting of feature names vs feature indices. |
if graphics=FALSE a vector containing the significance for each feature is returned.
We use a Bayesian approach to compute the relative significance of features based on variance.
Lutz Hamel, Benjamin Ott, Gregory Breard
"Bayesian Probability Approach to Feature Significance for Infrared Spectra of Bacteria," Lutz Hamel, Chris W. Brown, Applied Spectroscopy, Volume 66, Number 1, 2012.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | data(iris)
## set data frame and labels
df <- subset(iris,select=-Species)
labels <- subset(iris,select=Species)
## build a map
m <- map.build(df, labels, xdim=15, ydim=10, train=1000)
## show the relative feature significance for each feature
data.frame(names(df),map.significance(m,graphics=FALSE))
## display the relative feature significance graphically
map.significance(m)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.