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.0

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.0
File Size Uploaded Provenance Actions
badgers-0.1.0.tar.gz 5.3 MB Without provenance Details for badgers-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 5.4 MB

Release files / badgers-0.1.0.tar.gz

Download URL badgers-0.1.0.tar.gz
Size 5.3 MB
Tags Source
SHA-256 checksum
How to use checksums
e6a1c7320b0203bc2d72fe89f6bab6dde57c63e52163209702a53064f850c12f
BLAKE2b-256 checksum
How to use checksums
bb5b4c6fcefc0aed962ec000ed5ee07109681c912c86d53272dd96ef81867d47
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.0-py3-none-any.whl

Download URL badgers-0.1.0-py3-none-any.whl
Size 104.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f3c5588f6faacdbabe9bba9cbc9cb2092154647ac9c61f73c7128c7fd60608e2
BLAKE2b-256 checksum
How to use checksums
c414f48081b25665884ef43e3113a0b49babeb84fcc552fd65a005e8681c4d09
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.0

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