Learn R Programming

rCUR (version 1.3)

topLeverage: Function to obtain indexes of the most influental features due to leverage score

Description

The function sort the features (rows or columns) based on their influence (leverage score) and list out the indexes of the top valued items

Usage

topLeverage(object, C=TRUE, top.n=100, sort=TRUE)

Arguments

object
object of class CURobj-class
C
logical, if it is TRUE, then calculated the rank for the leverage scores belongs to columns, if FALSE, then to rows
top.n
number of indexes to list
sort
logical, if TRUE the indexes are sorted increasing

Value

The function returns a numerical vector of indexes of the most influental features

References

Mahoney M. W. and Drineas P. (2009) CUR matrix decompositions for improved data analysis. PNAS, 106(3):697-702

Andras Bodor, Istvan Csabai, Michael W Mahoney and Norbert Solymosi rCUR:an R package for CUR matrix decomposition BMC Bioinformatics 2012, 13:103 doi:10.1186/1471-2105-13-103

Examples

Run this code
data(STTm)
res <- CUR(STTm, 3, 31, 12)
topLeverage(res, top.n=10)

Run the code above in your browser using DataLab