Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

significance

Compute Significance Of Features


Description

Computes the relative significance of each feature and plots it.

Usage

significance(map,graphics=TRUE,feature.labels=TRUE)

Arguments

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.

Value

If graphics=FALSE a vector containing the significance for each feature is returned.

Note

We use a Bayesian approach to compute the relative significance of features based on variance.

Author(s)

Lutz Hamel

References

Bayesian Probability Approach to Feature Significance for Infrared Spectra of Bacteria, Lutz Hamel, Chris W. Brown, Applied Spectroscopy, Volume 66, Number 1, 2012.

Examples

data(iris)

df <- subset(iris,select=-Species)
labels <- subset(iris,select=Species)

m <- map(df,labels,xdim=15,ydim=10,train=10000)

## show the relative feature significance for each feature
df <- data.frame(names(df),significance(m,graphics=FALSE))
names(df) <- c("Features","Significance")
df

## display the relative feature significance graphically
significance(m)

popsom

Tools for Building, Visualizing, and Evaluating Self-Organizing Maps

v5.1
GPL
Authors
Lutz Hamel [aut, cre], Benjamin Ott [aut], Gregory Breard [aut], Robert Tatoian [aut], Michael Eiger [aut], Vishakh Gopu [aut]
Initial release
2020-12-26

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.