Skip to main content

opake-auditing

Empirical privacy auditing for Opake: one-run estimator (Steinke et al. 2023), coin-flip canary partitioning, and loss-based membership-inference attacks.

Install

Install the root package as described in the repository installation guide. Use its auditing extra to include this component.

opake-auditing depends on opake-engine and scipy; both install automatically with the extra.

Quick start

import opake.auditing as auditing
from opake.random import key

cf = auditing.coin_flip(dataset, num_canaries=1000, key=key(42))
# ... DP-SGD training loop ...
estimate = auditing.one_run(scores, coin_flip=cf)

By default, canaries are sampled from the dataset's natural rows. Pass candidate_indices= to restrict selection to a precommitted pool of constructed or selected records.

Layout

  • opake.auditing.one_run — one-run estimator (Steinke et al. 2023)
  • opake.auditing.coin_flip() — coin-flip canary partitioning
  • opake.auditing.loss_scores() — loss-based membership inference via vmap

Metadata

Release files for opake-auditing 0.16.0

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

Built distribution (wheel)

Table of built distributions (wheels) for opake-auditing 0.16.0
File Interpreter ABI Platform
opake_auditing-0.16.0-py3-none-any.whl Python 3 none any Details

Release files / opake_auditing-0.16.0-py3-none-any.whl

Download URL opake_auditing-0.16.0-py3-none-any.whl
Size 36.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c7f0f4b7d0c460725732ff72c9d0fcb7440d880f9fde9ffb4aea99fb316971a1
BLAKE2b-256 checksum
How to use checksums
a70abdfbde9c98e0fda650a104bd5bd409fbb816e7a89fa52542070f2ffe09f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.

Transparency log

Release history Release notifications | RSS feed

0.16.1

1 release file

This release

0.16.0 This release

1 release file

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