Skip to content

felixr/sparsity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sparsity

sparsity is an R package with functions for sparse matrices.

Why use sparsity

Reading and writing SVMlight format

read.svmlight() and write.svmlight() read/write sparse matrices in SVMlight format. You will find other functions for this on the internet, but the ones I found were either slow or handled only dense (=normal) matrices.

LIBLINEAR integration

The LiblineaR CRAN package provides an R interface to the LIBLINEAR library, but uses a dense representation. sparsity's functions use sparse matrices (from the Matrix package) instead. In addition it gives you a pointer to LIBLINEAR's internal representation of the data, which means you can train multiple models without the overhead of transforming the input data.

Installation

# install.packages("devtools")
library(devtools)
install_github("sparsity", "felixr")

About

R package with functions for sparse matrices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published