oddball
Lightweight access to the 47 ADBench classical anomaly detection datasets.
Downloads the published .npz assets from the GitHub release on demand and
returns raw (X, y) NumPy arrays.
- Default assets: https://github.com/OliverHennhoefer/oddball/releases/tag/v1.0-datasets
- Cache:
~/.cache/oddball/<version>(override with env vars below)
Installation
pip install oddball
Usage
from oddball import Dataset, load, split_by_label, list_available
print("Available:", list_available())
X, y = load(Dataset.COVER) # raw arrays
normal, anomaly = split_by_label("cover") # feature slices
# Generators for batch/online experimentation
from oddball import BatchGenerator, OnlineGenerator
batch_gen = BatchGenerator(
load_data_func=lambda: load(Dataset.COVER, as_dataframe=True),
batch_size=32,
anomaly_proportion=0.1,
seed=42,
)
for x_batch, y_batch in batch_gen.generate():
print(f"Batch: {x_batch.shape}, anomalies: {y_batch.sum()}")
break
Configuration
ODDBALL_DATASET_VERSION(default:v1.0-datasets)ODDBALL_DATASET_URL(default:https://github.com/OliverHennhoefer/oddball/releases/download/<version>/)ODDBALL_CACHE_DIR(default:~/.cache/oddball/<version>).envsupport: place the above keys in.env(or setODDBALL_DOTENV=/path/to/.env).
Supported datasets
All 47 ADBench classical datasets are available. Call oddball.list_available() to see slugs (e.g., cover, fraud, satimage2).
Metadata
Release files for oddball 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| oddball-1.4.0.tar.gz | 34.9 kB | Without provenance | Details for oddball-1.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| oddball-1.4.0-py3-none-any.whl | Python 3 | none | any | Details for oddball-1.4.0-py3-none-any.whl |
Total release size: 49.5 kB
Release files / oddball-1.4.0.tar.gz
| Download URL | oddball-1.4.0.tar.gz |
|---|---|
| Size | 34.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5508aee0bcd46f94ff33eaecf388b69795a396244a183a1c20e126d4d349ad8f
|
|
BLAKE2b-256 checksum How to use checksums |
d81d5e779ff6c3dc0a8fd62386cfe0de3c63a1d06b548b0835b6c1ec1946d2ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / oddball-1.4.0-py3-none-any.whl
| Download URL | oddball-1.4.0-py3-none-any.whl |
|---|---|
| Size | 14.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b9809574d9042e98ab87b61b5c144f53ef809e0ca83cd09f2e0e4e6c016d8c36
|
|
BLAKE2b-256 checksum How to use checksums |
f535b75a075209116906744dfe96b1220ddaab3a981933816f450899ac56f359
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for oddball 1.4.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.