[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://opensource.org/licenses/MIT)
[![Latest Version](https://img.shields.io/github/v/release/AI-SDC/SACRO-ML?style=flat)](https://github.com/AI-SDC/SACRO-ML/releases)
[![DOI](https://zenodo.org/badge/518801511.svg)](https://zenodo.org/badge/latestdoi/518801511)
[![codecov](https://codecov.io/gh/AI-SDC/SACRO-ML/branch/main/graph/badge.svg?token=AXX2XCXUNU)](https://codecov.io/gh/AI-SDC/SACRO-ML)
[![Python versions](https://img.shields.io/pypi/pyversions/sacroml.svg)](https://pypi.org/project/sacroml)
# SACRO-ML
A collection of tools and resources for managing the [statistical disclosure control](https://en.wikipedia.org/wiki/Statistical_disclosure_control) of trained [machine learning](https://en.wikipedia.org/wiki/Machine_learning) models. For a brief introduction, see [Smith et al. (2022)](https://doi.org/10.48550/arXiv.2212.01233).
The `sacroml` 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](https://scikit-learn.org) and [Keras](https://keras.io). 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](https://img.shields.io/pypi/v/sacroml.svg)](https://pypi.org/project/sacroml)
Install `sacroml` and manually copy the [`examples`](examples/).
To install only the base package, which includes the attacks used for assessing privacy:
```
$ pip install sacroml
```
To additionally install the safemodel package:
```
$ pip install sacroml[safemodel]
```
Note: macOS users may need to install libomp due to a dependency on XGBoost:
```
$ brew install libomp
```
## Running
See the [`examples`](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](https://dareuk.org.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.
<img src="docs/source/images/UK_Research_and_Innovation_logo.svg" width="20%" height="20%" padding=20/> <img src="docs/source/images/health-data-research-uk-hdr-uk-logo-vector.png" width="10%" height="10%" padding=20/> <img src="docs/source/images/logo_print.png" width="15%" height="15%" padding=20/>
Raw data
{
"_id": null,
"home_page": "https://github.com/AI-SDC/SACRO-ML",
"name": "sacroml",
"maintainer": "Jim Smith",
"docs_url": null,
"requires_python": "<3.12,>=3.9",
"maintainer_email": "james.smith@uwe.ac.uk",
"keywords": "data-privacy, data-protection, machine-learning, privacy, privacy-tools, statistical-disclosure-control",
"author": null,
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/ba/ed/032402fb0a05ed0ece1db09b298daa79fbfb584693e347294accf6436a53/sacroml-1.2.1.tar.gz",
"platform": null,
"description": "[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://opensource.org/licenses/MIT)\n[![Latest Version](https://img.shields.io/github/v/release/AI-SDC/SACRO-ML?style=flat)](https://github.com/AI-SDC/SACRO-ML/releases)\n[![DOI](https://zenodo.org/badge/518801511.svg)](https://zenodo.org/badge/latestdoi/518801511)\n[![codecov](https://codecov.io/gh/AI-SDC/SACRO-ML/branch/main/graph/badge.svg?token=AXX2XCXUNU)](https://codecov.io/gh/AI-SDC/SACRO-ML)\n[![Python versions](https://img.shields.io/pypi/pyversions/sacroml.svg)](https://pypi.org/project/sacroml)\n\n# SACRO-ML\n\nA collection of tools and resources for managing the [statistical disclosure control](https://en.wikipedia.org/wiki/Statistical_disclosure_control) of trained [machine learning](https://en.wikipedia.org/wiki/Machine_learning) models. For a brief introduction, see [Smith et al. (2022)](https://doi.org/10.48550/arXiv.2212.01233).\n\nThe `sacroml` package provides:\n* A variety of privacy attacks for assessing machine learning models.\n* The safemodel package: a suite of open source wrappers for common machine learning frameworks, including [scikit-learn](https://scikit-learn.org) and [Keras](https://keras.io). 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.\n\n## Installation\n\n[![PyPI package](https://img.shields.io/pypi/v/sacroml.svg)](https://pypi.org/project/sacroml)\n\nInstall `sacroml` and manually copy the [`examples`](examples/).\n\nTo install only the base package, which includes the attacks used for assessing privacy:\n\n```\n$ pip install sacroml\n```\n\nTo additionally install the safemodel package:\n\n```\n$ pip install sacroml[safemodel]\n```\n\nNote: macOS users may need to install libomp due to a dependency on XGBoost:\n```\n$ brew install libomp\n```\n\n## Running\n\nSee the [`examples`](examples/).\n\n## Acknowledgement\n\nThis 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](https://dareuk.org.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).\u00adThis project has also been supported by MRC and EPSRC [grant number MR/S010351/1]: PICTURES.\n\n<img src=\"docs/source/images/UK_Research_and_Innovation_logo.svg\" width=\"20%\" height=\"20%\" padding=20/> <img src=\"docs/source/images/health-data-research-uk-hdr-uk-logo-vector.png\" width=\"10%\" height=\"10%\" padding=20/> <img src=\"docs/source/images/logo_print.png\" width=\"15%\" height=\"15%\" padding=20/>\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Tools for the statistical disclosure control of machine learning models",
"version": "1.2.1",
"project_urls": {
"Bug Tracker": "https://github.com/AI-SDC/SACRO-ML/issues",
"Changelog": "https://github.com/AI-SDC/SACRO-ML/CHANGELOG.md",
"Discussions": "https://github.com/AI-SDC/SACRO-ML/discussions",
"Documentation": "https://ai-sdc.github.io/SACRO-ML/",
"Homepage": "https://github.com/AI-SDC/SACRO-ML"
},
"split_keywords": [
"data-privacy",
" data-protection",
" machine-learning",
" privacy",
" privacy-tools",
" statistical-disclosure-control"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "1096f7b5d0c60a6ef104359daf81ebd74f1ab50e308eed3dc0381b5d3bc6a421",
"md5": "cbb2a0cb7d662a21884829c1e778c9a2",
"sha256": "2a6d6ff41d449b14135b866186ab940ae1d97b065d2822fac1030b17e5a3f557"
},
"downloads": -1,
"filename": "sacroml-1.2.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "cbb2a0cb7d662a21884829c1e778c9a2",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<3.12,>=3.9",
"size": 79750,
"upload_time": "2024-07-29T17:23:08",
"upload_time_iso_8601": "2024-07-29T17:23:08.526975Z",
"url": "https://files.pythonhosted.org/packages/10/96/f7b5d0c60a6ef104359daf81ebd74f1ab50e308eed3dc0381b5d3bc6a421/sacroml-1.2.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "baed032402fb0a05ed0ece1db09b298daa79fbfb584693e347294accf6436a53",
"md5": "2b6b2f80a7bdabaaf49ca40c55c4f7b8",
"sha256": "8221557ec169256cbc1c0da08ca41d83328d1b05713f872f71e2150caa5594ed"
},
"downloads": -1,
"filename": "sacroml-1.2.1.tar.gz",
"has_sig": false,
"md5_digest": "2b6b2f80a7bdabaaf49ca40c55c4f7b8",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<3.12,>=3.9",
"size": 69015,
"upload_time": "2024-07-29T17:23:09",
"upload_time_iso_8601": "2024-07-29T17:23:09.965141Z",
"url": "https://files.pythonhosted.org/packages/ba/ed/032402fb0a05ed0ece1db09b298daa79fbfb584693e347294accf6436a53/sacroml-1.2.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-29 17:23:09",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "AI-SDC",
"github_project": "SACRO-ML",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "sacroml"
}