Skip to main content

Design-by-Contract for ML pipelines: fail-fast data/features/models

Project description

ml-contracts

PyPI Version Design-by-Contract for ML: Enforce data/features/models pre-deployment.

Install

pip install ml-contracts

Quickstart

from ml_contracts import DataContract
contract = DataContract(
    name="input-data",
    schema={"age": int},
    ranges={"age": (18, 75)},
    distribution={"age": "norm"}
)

Fits production pipelines—lightweight, no infra.

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

rajkumar_ml_contracts-0.1.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rajkumar_ml_contracts-0.1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file rajkumar_ml_contracts-0.1.0.tar.gz.

File metadata

  • Download URL: rajkumar_ml_contracts-0.1.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for rajkumar_ml_contracts-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2116cc1516709faf7a336a62d018df049c921891644fee6ba78c22c790add40b
MD5 128481335b2d5bf885f1ed810212e31a
BLAKE2b-256 e918685df0c47d895317fb9fa0336c19653dedd7b41546ce86d18b1599758f73

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rajkumar_ml_contracts-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a2de2e37eecebf8a322c49a7826b32a04e5be07acfe63108b6a92c9318e900cb
MD5 8d305ae9833b7528e19b81140d02f898
BLAKE2b-256 67e303b77b6885b06597001b897b7525571e017141d8597dd8d50c995fc0aff9

See more details on using hashes here.

Supported by

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