N-gram, embedding, canary, answer-pattern, and corpus contamination auditor.
Project description
contamination-audit
contamination-audit combines n-gram overlap, optional embedding similarity, canary matching, answer-pattern checks, and public-corpus hash matching.
Quickstart
pip install contamination-audit
contamination-audit run --eval-data examples/eval.jsonl --corpora pile,c4,hf-mmlu
By default, embedding checks use a no-dependency lexical cosine fallback. To run semantic embedding checks locally:
pip install 'contamination-audit[embedding]'
contamination-audit run --eval-data examples/eval.jsonl --embedding-backend sentence-transformers --embedding-model all-MiniLM-L6-v2
What This Is Not
Not proof of uncontaminated data; it is a code-only diagnostic. Examples are synthetic.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file contamination_audit-0.1.1.tar.gz.
File metadata
- Download URL: contamination_audit-0.1.1.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7299ffdeffc53a8b8ddc0cd2e2f4f676ee8c6b75f6627325698a9ab053e9c83f
|
|
| MD5 |
8fe1373c43044edca781bfb7bd50bb12
|
|
| BLAKE2b-256 |
db0dd3bb379ed9eacb3600c0021ff3a3c4b5a06c9d30937fc9a0b72769f76deb
|
Provenance
The following attestation bundles were made for contamination_audit-0.1.1.tar.gz:
Publisher:
release-python.yml on auraoneai/contamination-audit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
contamination_audit-0.1.1.tar.gz -
Subject digest:
7299ffdeffc53a8b8ddc0cd2e2f4f676ee8c6b75f6627325698a9ab053e9c83f - Sigstore transparency entry: 1519864983
- Sigstore integration time:
-
Permalink:
auraoneai/contamination-audit@6762b17525f7ca7df043ba4969fa11ed86a7a522 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/auraoneai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-python.yml@6762b17525f7ca7df043ba4969fa11ed86a7a522 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file contamination_audit-0.1.1-py3-none-any.whl.
File metadata
- Download URL: contamination_audit-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
264af5d0e95850a778a3dec99312fee86a1f2202df7f8bc6cf4399689157f3ca
|
|
| MD5 |
823bef733bfa706ea3fa7a00e8fec18e
|
|
| BLAKE2b-256 |
0cc2c4ded1090aadc1f0a0e958055d0b50cc61adef49f86f16c1aba94dfbb470
|
Provenance
The following attestation bundles were made for contamination_audit-0.1.1-py3-none-any.whl:
Publisher:
release-python.yml on auraoneai/contamination-audit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
contamination_audit-0.1.1-py3-none-any.whl -
Subject digest:
264af5d0e95850a778a3dec99312fee86a1f2202df7f8bc6cf4399689157f3ca - Sigstore transparency entry: 1519865011
- Sigstore integration time:
-
Permalink:
auraoneai/contamination-audit@6762b17525f7ca7df043ba4969fa11ed86a7a522 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/auraoneai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-python.yml@6762b17525f7ca7df043ba4969fa11ed86a7a522 -
Trigger Event:
workflow_dispatch
-
Statement type: