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.

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.

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.2.0.tar.gz (69.2 kB view details)

Uploaded Source

Built Distribution

aisdc-1.2.0-py3-none-any.whl (79.6 kB view details)

Uploaded Python 3

File details

Details for the file aisdc-1.2.0.tar.gz.

File metadata

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

File hashes

Hashes for aisdc-1.2.0.tar.gz
Algorithm Hash digest
SHA256 4c0337ce46c730f32b14ab7131c6f272bf1b9b1c2a65cdbaf2e5776c939895ad
MD5 d2ea7491aa4cc85df4078715fb702aaf
BLAKE2b-256 cdb86b9098f9240637ffc62fde3754550c184964b790c44d2b21a46c88206772

See more details on using hashes here.

File details

Details for the file aisdc-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: aisdc-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 79.6 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7f9fa731f16af396dfc1dd64e5c3ea73ed118577fdecef110b27fce06e4ba1f3
MD5 83081da8b1bc79e5ba3b640fb1a28c2a
BLAKE2b-256 394168b717dce22a8468e57bc3c2ba6d09301dbbf6ca59dabed89195e80682d5

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