Skip to main content

Drift detection server and client in Python

Project description

Drifting

CI/CD PyPi License

The most flexible Drift Detection Server.

Learn about the concepts in Docs


Main features:

:+1: surprisingly easy to use

:+1: production-ready server

:+1: created with real use-cases in mind

:+1: not just a math library

:+1: Python-first, API-first

Quickstart

drifting is built with Developer Experience in mind.

You communicate with Drift Detection Server via DriftingClient or API, both for fitting the Drift Detector and detecting the drift. In your training pipeline, use the fit method:

import drifting
drifting.fit(train_column, project="example")

Then, next to your prediction call:

import drifting
response = drifting.detect(inference_data, project="example")
response.is_drift

Note that this makes the usage of the server as easy as possible.

  1. It's not required to manage any artifacts,
  2. No need to implement any feedback loops,
  3. No need to collect test data,
  4. No need to leave your python environment, fetch any logs,
  5. You only make request to the server twice.

Local installation and running

To install dependencies, use poetry:

poetry install

And run server locally:

python drifting/app.py

Production usage

To use Drift Detection Server in your organization, build and deploy the Docker image, or use the pre-built version from TODO.

Docker on a custom server

To deploy the on cloud instance using docker, you can easily pull the image and run it:

TODO

Kubernetes and Helm

For more demanding use-cases, it's facilitated to deploy Drift Detection Server on kubernetes. DDS is packaged with bitnami. You can include the chart by

TODO

Real-world scenarios

Even though Drift Detection Server makes the task incredibly easy, it still follows the MLOps culture, assuring reproducibility, observability and scalability postulates are fulfilled.

Please read the Docs to learn about real-world usage.

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

drifting-0.2.1.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

drifting-0.2.1-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file drifting-0.2.1.tar.gz.

File metadata

  • Download URL: drifting-0.2.1.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/37.3 requests/2.28.2 requests-toolbelt/0.10.1 urllib3/1.26.15 tqdm/4.65.0 importlib-metadata/6.6.0 keyring/23.13.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.9.16

File hashes

Hashes for drifting-0.2.1.tar.gz
Algorithm Hash digest
SHA256 f97f544f293c287cda287420d255396f5c7db43690ba035cf3c8a78a277cdc01
MD5 ba3775a7adad6803f6bb9dcba5f7bdf6
BLAKE2b-256 373fadbd41dde802c150dcd17bc0e75b2ac819e968ca56a639e1735e920e0c01

See more details on using hashes here.

File details

Details for the file drifting-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: drifting-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/37.3 requests/2.28.2 requests-toolbelt/0.10.1 urllib3/1.26.15 tqdm/4.65.0 importlib-metadata/6.6.0 keyring/23.13.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.9.16

File hashes

Hashes for drifting-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 348d6c54290ca01475238c4a6a876d9707b040c797e836dadfe160696e43600e
MD5 637df32722510743e6406c1627dc797e
BLAKE2b-256 12fad3f7f6e64794b1a183791cfb61cd78588323a4a91813a2c3d5a8436710ac

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