Skip to main content

Badgers: bad data generators

badgers is a python library for generating bad data (more precisely to augment existing data with data quality deficits such as outliers, missing values, noise, etc.). It is based upon a simple API and provides a set of generators object that can generate data quality deficits from existing data.

A word of caution: badgers is still in an early development stage. The core structure of the package and the generate(X, **params) signature — generators and selectors take the input data X only and return a single generated object — are not expected to change, but some API details (like attribute names) are likely to change. Target-like data (class labels, signals used for selection) lives inside X as dedicated columns (or graph attributes / modality-native values for other data types).

The full documentation is hosted here: https://fraunhofer-iese.github.io/badgers/.

For a quick-start, you can install badgers with pip:

pip install badgers

Import badgers as any other library and start using it:

from numpy.random import default_rng
from sklearn.datasets import make_blobs
from scipy.stats import norm
from badgers.generators.tabular_data.noise import AdditiveNoiseGenerator

X, _ = make_blobs()
trf = AdditiveNoiseGenerator(random_generator=default_rng(0))

Xt = trf.generate(X, distribution=norm(scale=0.5))

More examples are available in the tutorials section.

The API documentation is also available in the API section.

Interested developers will find relevant information in the CONTRIBUTING.md page.

Metadata

Release files for badgers 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for badgers 0.1.1
File Size Uploaded Provenance Actions
badgers-0.1.1.tar.gz 5.3 MB Without provenance Details for badgers-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for badgers 0.1.1
File Interpreter ABI Platform Actions
badgers-0.1.1-py3-none-any.whl Python 3 none any Details for badgers-0.1.1-py3-none-any.whl

Total release size: 5.4 MB

Release files / badgers-0.1.1.tar.gz

Download URL badgers-0.1.1.tar.gz
Size 5.3 MB
Tags Source
SHA-256 checksum
How to use checksums
3ccc39c4b3850e058b4ddfffbd699cef74e3c129c23a963d766b39db50a55ec4
BLAKE2b-256 checksum
How to use checksums
3f1deb843b3e418307fa66d36a778847539b119492cc3059e166663ee99efe07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / badgers-0.1.1-py3-none-any.whl

Download URL badgers-0.1.1-py3-none-any.whl
Size 104.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e0fcaef0ae450753a5d69586295b2051f0689fc5013a44724d9577c113dde5e3
BLAKE2b-256 checksum
How to use checksums
6715d0d46567d46feb3cd63bd7b40d2f6aacc21ebce123b2d2c5f2ef93985b3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for badgers 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page