Skip to main content

Anomaly Detection Dataset Collection

Project description

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.

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>)
  • .env support: place the above keys in .env (or set ODDBALL_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).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oddball-1.3.0.tar.gz (33.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oddball-1.3.0-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file oddball-1.3.0.tar.gz.

File metadata

  • Download URL: oddball-1.3.0.tar.gz
  • Upload date:
  • Size: 33.7 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for oddball-1.3.0.tar.gz
Algorithm Hash digest
SHA256 a42be5d401e51bdbe4866575834bea5ca488b5ac1c3ce345d94c81ff6a7e7d1c
MD5 8b5b3d42417f40e20d01cbb3c2d6fa63
BLAKE2b-256 e21ea48a42b61de0049d1214de5c7756483af039a2174581b1504b424c11cecd

See more details on using hashes here.

File details

Details for the file oddball-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: oddball-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for oddball-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 db003fc5492f24ce0b4a455a2a90c62f8030f8958e91502a97528ba454763316
MD5 c9e333527ab6f797a3017bc491a25524
BLAKE2b-256 e9140b1472ab32885fcd256cc60538d8a9fc8185096d3b2cb3d7ecdb2e3270b4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page