Skip to main content

Utilities for confidential machine learning

Project description

Confidential ML Utilities

python PyPI version PyPI - Downloads

Confidential ML is the practice of training machine learning models without seeing the training data. It is needed in many enterprises to satisfy the strict compliance and privacy guarantees they provide to their customers. This repository contains a set of utilities for confidential ML, with a special emphasis on using PyTorch in Azure Machine Learning pipelines.

Using

First execute pip install confidential-ml-utils to install this library. Then wrap any methods which may throw an exception with the decorator prefix_stack_trace. Here's a simple example.

from confidential_ml_utils.exceptions import prefix_stack_trace

@prefix_stack_trace()
def main():
    print("Hello, world!")

if __name__ == "__main__":
    main()

There is a more comprehensive set of examples in docs/samples.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

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

confidential-ml-utils-0.1.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

confidential_ml_utils-0.1.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file confidential-ml-utils-0.1.0.tar.gz.

File metadata

  • Download URL: confidential-ml-utils-0.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for confidential-ml-utils-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1596fabc902df63923ce2dd525500ccc5c4ade53c1089620ad63830b4afa343a
MD5 f4bb92eb7d60de4310fb743fe8e6a7d9
BLAKE2b-256 5f965de105fa30c3c9929e071ab757ab0764c2fdf2ba7a1ce8c8e44fab37ac55

See more details on using hashes here.

File details

Details for the file confidential_ml_utils-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: confidential_ml_utils-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for confidential_ml_utils-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dd83d17c2206764838dca66dd46599e9884960c46e91f45a619e48bfb40b23ca
MD5 98b28f9958ebc4ec7410a2d948eeab50
BLAKE2b-256 125b9de0fadf14c7fcc08a3958034c3b39f5081d724b8896232a32f4bb38aec0

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