Skip to content
forked from felixr/sparsity

R package for loading/saving sparse matrices (dgCMatrix) to SVMlight (LibFM, xgboost, LightGBM, H2O, etc.)

Notifications You must be signed in to change notification settings

Laurae2/sparsity

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Benchmark to convert a dgCMatrix with 2,500,000 rows and 8,500 columns (1.1GB in memory) => 5 minutes

You would take hours if not days with regular packages for such sizes!

Installation

devtools:::install_github("Laurae2/sparsity")

Original source (felixr/sparsity) does not compile properly! Hence the reason of this repository for those who needs only the SVMLight format >_>

About

R package for loading/saving sparse matrices (dgCMatrix) to SVMlight (LibFM, xgboost, LightGBM, H2O, etc.)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 51.9%
  • C++ 48.1%