sansa: Synthetic Data Generation for Imbalanced Learning in 'R'

Machine learning is widely used in information-systems design. Yet, training algorithms on imbalanced datasets may severely affect performance on unseen data. For example, in some cases in healthcare, financial, or internet-security contexts, certain sub-classes are difficult to learn because they are underrepresented in training data. This 'R' package offers a flexible and efficient solution based on a new synthetic average neighborhood sampling algorithm ('SANSA'), which, in contrast to other solutions, introduces a novel “placement” parameter that can be tuned to adapt to each datasets unique manifestation of the imbalance. More information about the algorithm's parameters can be found at Nasir et al. (2022) <>.

Version: 0.0.1
Imports: data.table, FNN, ggplot2
Published: 2022-08-23
DOI: 10.32614/CRAN.package.sansa
Author: Murtaza Nasir ORCID iD [aut, cre], Ali Dag [ctb], Serhat Simsek [ctb], Anton Ivanov [ctb], Asil Oztekin [ths]
Maintainer: Murtaza Nasir <mail at>
License: GPL (≥ 3)
NeedsCompilation: no
Citation: sansa citation info
Materials: README
CRAN checks: sansa results


Reference manual: sansa.pdf


Package source: sansa_0.0.1.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): sansa_0.0.1.tgz, r-oldrel (arm64): sansa_0.0.1.tgz, r-release (x86_64): sansa_0.0.1.tgz, r-oldrel (x86_64): sansa_0.0.1.tgz


Please use the canonical form to link to this page.