Welcome to niacin’s documentation!


A Python library for replacing the missing variation in your data.

Why should I use niacin?

Data collected for model training necessarily undersamples the likely variance in the input space. This library is a collection of tools for inserting typical kinds of perturbations to better approximate population variance; and, for creating similar-but-incorrect examples to aid in reducing the total size of the hypothesis space. These are commonly known as ENRICHMENT and NEGATIVE SAMPLING, respectively.

Currently, niacin supports augmentation strategies for English language text and timeseries data.

Are you using niacin with PyTorch’s data loaders? See using niacin with pytorch loaders.

Indices and tables