Skip to main content

Python utilities for compliant Azure machine learning

Project description

Shrike: Compliant Azure ML Utilities

CodeQL docs python Component Governance Python versions code style: black codecov PyPI - Downloads PyPI version license: MIT

Compliant Machine Learning (sometimes also called eyes-off Machine Learning) is the practice of training, validating and deploying machine learning models without seeing the underlying private data. It is needed by many enterprises to satisfy the strict compliance and privacy guarantees that they provide to their customers.

The shrike library is a set of Python utilities for compliant machine learning, with a special emphasis on running experiments in the Azure Machine Learning platform (a.k.a. Azure ML). This library contains three elements, which are:

  • shrike.compliant_logging: utilities for compliant logging and exception handling;
  • shrike.pipeline: helper code for managing, validating and submitting Azure ML pipelines based on azure-ml-component (a.k.a. the Component SDK);
  • shrike.build: helper code for packaging, building, validating, signing and registering Azure ML components.
  • shrike.spark: utilities for running jobs, especially those leveraging Spark .NET, in HDInsight.

Documentation

For the full documentation of shrike with detailed examples and API reference, please see the docs page.

Installation

The shrike library is publicly available in PyPi. There are three optional extra dependencies: pipeline, build, and dev. The pipeline dependency is for submitting Azure ML pipelines, build is for signing and registering components, and dev is for the development environment of shrike.

  • If you are only planning on using the compliant-logging feature, please pip install without any extras:
pip install shrike
  • If you are planning on signing and registering components, please pip install with [build]:
pip install shrike[build]
  • If you are planning on submitting Azure ML pipelines, please pip install with [pipeline]:
pip install shrike[pipeline]
  • If you would like to contribute to the source code, please pip install with all the dependencies:
pip install shrike[pipeline,build,dev]

Migration from aml-build-tooling, aml-ds-pipeline-contrib, and confidential-ml-utils

If you have been using the aml-build-tooling, aml-ds-pipeline-contrib, or confidential-ml-utils libraries, please use the migration script (migration.py) to convert your repo or files and adopt the shrike package with one simple command:

python migraton.py --input_path PATH/TO/YOUR/REPO/OR/FILE

:warning: This command will update files in-place. Please make a copy of your repo/file if you do not want to do so.

Need Support?

If you have any feature requests, technical questions, or find any bugs, please do not hesitate to reach out to us.

  • For bug reports and feature requests, you are welcome to open an issue.
  • If you are a Microsoft employee, please refer to the support page for details;
  • If you are outside Microsoft, please send an email to aml-ds@microsoft.com.

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.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shrike-1.9.0.tar.gz (127.8 kB view details)

Uploaded Source

Built Distribution

shrike-1.9.0-py3-none-any.whl (136.9 kB view details)

Uploaded Python 3

File details

Details for the file shrike-1.9.0.tar.gz.

File metadata

  • Download URL: shrike-1.9.0.tar.gz
  • Upload date:
  • Size: 127.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for shrike-1.9.0.tar.gz
Algorithm Hash digest
SHA256 0bcd22fd1379877017398aec7affa2b87b2875d5e03279256231638f78f1872c
MD5 ab6e368111ac9468591dcd4882be840f
BLAKE2b-256 41a1442246ff9409eaca218e2428f59fbf506492d065d09dbe1c89997f226d17

See more details on using hashes here.

File details

Details for the file shrike-1.9.0-py3-none-any.whl.

File metadata

  • Download URL: shrike-1.9.0-py3-none-any.whl
  • Upload date:
  • Size: 136.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for shrike-1.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a4ca50b96eb1f6fe5085bfa9a9f1d14341482d897d99c1d2b0e9e3ec205b1a2f
MD5 24e641ff372d10c2ae14ed193005606e
BLAKE2b-256 de3ecfbc69267cddc85bebb1eda9d1a94e6de530c3005187b154f009fdd21c10

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