Sparse Wrapper Algorithm
Overview
An algorithm that trains a meta-learning procedure that combines screening and wrapper methods to find a set of extremely low-dimensional attribute combinations. This package works on top of the 'caret' package and proceeds in a forward-step manner. More specifically, it builds and tests learners starting from very few attributes until it includes a maximal number of attributes by increasing the number of attributes at each step. Hence, for each fixed number of attributes, the algorithm tests various (randomly selected) learners and picks those with the best performance in terms of training error. Throughout, the algorithm uses the information coming from the best learners at the previous step to build and test learners in the following step. In the end, it outputs a set of strong low-dimensional learners.
- First version for submission to CRAN. The package is made available on GitHub (github.com/SMAC-Group/SWAG-R-Package/)
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK12 OK, 1 FAILURE2026-06-08
- NOTE12 OK, 1 NOTE2026-06-07
- OK13 OK2026-05-02
Show 2 earlier changesHide 2 earlier changes
- ERROR11 OK, 1 ERROR2026-04-25
- OK14 OK2026-03-10
Documentation
- Help pages
- 3
- Examples that run
- no examples
- Exported functions with examples
- 0%
- Documented parameters
- 100%
- Return-value docs
- 50%
- Help pages citing references
- 33% with a bibliography file
- Introduction to swag HTML
Downloads
Repository
Moved from smac-group/swag-r-package.
Commit identities over time
4 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/smac-group/swag-r-package on 2026-10-22.
Dependencies
Installing swag adds 65 packages (35 with compiled code, 50 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.
Code & Tests
People & History
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 0.1.0Latest2020-11-10 · current release
- RR 4.0.0 released · 2020-04-24
Package metadata
- First published
- 2020-11-10
- Total releases
- 1 / 6 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 4.0.0
- Download size
- 44 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("swag")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.