Skip to main content

License Latest Version DOI codecov Python versions

AI-SDC

A collection of tools and resources for managing the statistical disclosure control of trained machine learning models. For a brief introduction, see Smith et al. (2022).

The aisdc package provides:

  • A variety of privacy attacks for assessing machine learning models.
  • The safemodel package: a suite of open source wrappers for common machine learning frameworks, including scikit-learn and Keras. It is designed for use by researchers in Trusted Research Environments (TREs) where disclosure control methods must be implemented. Safemodel aims to give researchers greater confidence that their models are more compliant with disclosure control.

Installation

PyPI package

Install aisdc and manually copy the examples.

To install only the base package, which includes the attacks used for assessing privacy:

$ pip install aisdc

To additionally install the safemodel package:

$ pip install aisdc[safemodel]

Note: macOS users may need to install libomp due to a dependency on XGBoost:

$ brew install libomp

Running

See the examples.

Acknowledgement

This work was funded by UK Research and Innovation under Grant Numbers MC_PC_21033 and MC_PC_23006 as part of Phase 1 of the DARE UK (Data and Analytics Research Environments UK) programme, delivered in partnership with Health Data Research UK (HDR UK) and Administrative Data Research UK (ADR UK). The specific projects were Semi-Automatic checking of Research Outputs (SACRO; MC_PC_23006) and Guidelines and Resources for AI Model Access from TrusTEd Research environments (GRAIMATTER; MC_PC_21033).­This project has also been supported by MRC and EPSRC [grant number MR/S010351/1]: PICTURES.

Metadata

Release files for aisdc 1.2.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 aisdc 1.2.0
File Size Uploaded
aisdc-1.2.0.tar.gz 69.2 kB Details

Built distribution (wheel)

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

Total release size: 148.7 kB

Release files / aisdc-1.2.0.tar.gz

Download URL aisdc-1.2.0.tar.gz
Size 69.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4c0337ce46c730f32b14ab7131c6f272bf1b9b1c2a65cdbaf2e5776c939895ad
BLAKE2b-256 checksum
How to use checksums
cdb86b9098f9240637ffc62fde3754550c184964b790c44d2b21a46c88206772
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / aisdc-1.2.0-py3-none-any.whl

Download URL aisdc-1.2.0-py3-none-any.whl
Size 79.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f9fa731f16af396dfc1dd64e5c3ea73ed118577fdecef110b27fce06e4ba1f3
BLAKE2b-256 checksum
How to use checksums
394168b717dce22a8468e57bc3c2ba6d09301dbbf6ca59dabed89195e80682d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

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