rsparse
0.5.3Statistical Learning on Sparse Matrices
Overview
Implements many algorithms for statistical learning on sparse matrices - matrix factorizations, matrix completion, elastic net regressions, factorization machines. Also 'rsparse' enhances 'Matrix' package by providing methods for multithreaded <sparse, dense> matrix products and native slicing of the sparse matrices in Compressed Sparse Row (CSR) format. List of the algorithms for regression problems: 1) Elastic Net regression via Follow The Proximally-Regularized Leader (FTRL) Stochastic Gradient Descent (SGD), as per McMahan et al(, doi:10.1145/2487575.2488200) 2) Factorization Machines via SGD, as per Rendle (2010, doi:10.1109/ICDM.2010.127) List of algorithms for matrix factorization and matrix completion: 1) Weighted Regularized Matrix Factorization (WRMF) via Alternating Least Squares (ALS) - paper by Hu, Koren, Volinsky (2008, doi:10.1109/ICDM.2008.22) 2) Maximum-Margin Matrix Factorization via ALS, paper by Rennie, Srebro (2005, doi:10.1145/1102351.1102441) 3) Fast Truncated Singular Value Decomposition (SVD), Soft-Thresholded SVD, Soft-Impute matrix completion via ALS - paper by Hastie, Mazumder et al. (2014, doi:10.48550/arXiv.1410.2596) 4) Linear-Flow matrix factorization, from 'Practical linear models for large-scale one-class collaborative filtering' by Sedhain, Bui, Kawale et al (2016, ISBN:978-1-57735-770-4) 5) GlobalVectors (GloVe) matrix factorization via SGD, paper by Pennington, Socher, Manning (2014, https://aclanthology.org/D14-1162/) Package is reasonably fast and memory efficient - it allows to work with large datasets - millions of rows and millions of columns. This is particularly useful for practitioners working on recommender systems.
Install
Health
- NOTE r-devel-linux-x86_64-fedora-clang
- NOTE r-devel-linux-x86_64-fedora-gcc
- NOTE2026-04-2210 OK · 4 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-04-189 OK · 4 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- NOTE2026-03-1010 OK · 4 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 100%
- Return-value docs
- 10%
- References docs
- 31%
Downloads
Repository
Stars over time
Forks over time
Issues over time
PRs over time
Repository practices
4 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/dselivanov/rsparse on 2026-07-19.
Dependencies
Code & Tests
- Cyclomatic complexity
- 1.0 median / 22 max
- Test cases
- 15 / 0.13 per code line
Test coverage
Line coverage
72%
Expression
72.7%
Tests / Examples
72.1% / 48% ex
Functions
158 5 exported
Complexity
2 avg / 22 max
Call network
158 nodes / 87 edges
Call graph
Open call graph →Lowest coverage
158 functions| Function | Cyclo | Coverage |
|---|---|---|
| detect_number_omp_threads exp | 1 | 0% |
| .onLoad | 2 | 0% |
| install_name_tool_change_float | 4 | 0% |
| make_csr_identity_matrix | 1 | 0% |
| predictions_format_error | 1 | 0% |
| solver_explicit | 3 | 0% |
People & History
10 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 0.5.3Latest
- 0.5.22024-06-28 · diff ↗
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 0.5.12022-09-12 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 0.5.02021-11-30 · diff ↗
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- 0.4.02020-04-01 · diff ↗
- 0.3.3.42019-11-14 · diff ↗
- 0.3.3.32019-08-04 · diff ↗
- 0.3.3.22019-07-18 · diff ↗
- RR 3.6.0 released · 2019-04-26
Show 3 earlier events
- 0.3.3.12019-04-14 · diff ↗
- 0.3.32019-04-12
- RR 3.5.0 released · 2018-04-23
Package metadata
- First published
- 2019-04-12
- Total releases
- 10 / 7 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 3.6.0
- Bundled data
- 98 KB / 1 file
- Download size
- 210 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet