Skip to main content

Tools for the statistical disclosure control of machine learning models

Project description

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.

A collection of user guides can be found in the user_stories folder of this repository. These guides include configurable examples from the perspective of both a researcher and a TRE, with separate scripts for each. Instructions on how to use each of these scripts and which scripts to use are included in the README located in the folder.

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]

Running

To run an example, simply execute the desired script. For example, to run LiRA:

$ python -m lira_attack_example

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.

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

aisdc-1.1.3.post1.tar.gz (74.5 kB view details)

Uploaded Source

Built Distribution

aisdc-1.1.3.post1-py3-none-any.whl (84.1 kB view details)

Uploaded Python 3

File details

Details for the file aisdc-1.1.3.post1.tar.gz.

File metadata

  • Download URL: aisdc-1.1.3.post1.tar.gz
  • Upload date:
  • Size: 74.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for aisdc-1.1.3.post1.tar.gz
Algorithm Hash digest
SHA256 2ab96880bb15233a1051ae42e08777e2e92566ec7a7fb315e5a7874d25d28104
MD5 3e02e3b2f2c01b8f516cdb9725cc5307
BLAKE2b-256 74000fe05d68f82cb4062a77bd4826d93cd1ddf8e562347d52fb9ade2660afe4

See more details on using hashes here.

File details

Details for the file aisdc-1.1.3.post1-py3-none-any.whl.

File metadata

  • Download URL: aisdc-1.1.3.post1-py3-none-any.whl
  • Upload date:
  • Size: 84.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for aisdc-1.1.3.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 112086ed21038f41d372c26ea636cafe5874c8799ac8ca213a85d687d2556cb3
MD5 264818401daaa7c4f8b0c4aa6db976a3
BLAKE2b-256 a3b10dc7886a3df1514559c94cf54b359b0b86466ec4a7e9527a41ed3ba0948f

See more details on using hashes here.

Supported by

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