Skip to main content

How do we measure the degradation of a machine learning process? Why does the performance of our predictive models decrease? Maybe it is that a data source has changed (one or more variables) or maybe what changes is the relationship of these variables with the target we want to predict. `pydrift` tries to facilitate this task to the data scientist, performing this kind of checks and somehow measuring that degradation.

Project description

Welcome to pydrift 0.1.7

How do we measure the degradation of a machine learning process? Why does the performance of our predictive models decrease? Maybe it is that a data source has changed (one or more variables) or maybe what changes is the relationship of these variables with the target we want to predict. pydrift tries to facilitate this task to the data scientist, performing this kind of checks and somehow measuring that degradation.

Install pydrift :v:

pip install pydrift

Structure :triangular_ruler:

This is intended to be user-friendly. pydrift is divided into DataDriftChecker and ModelDriftChecker:

  • DataDriftChecker: search for drift in the variables, check if their distributions have changed
  • ModelDriftChecker: search for drift in the relationship of the variables with the target, checks that the model behaves the same way for both data sets

Both can use a discriminative model (defined by parent class DriftChecker), where the target would be binary in belonging to one of the two sets, 1 if it is the left one and 0 on the contrary. If the model is not able to differentiate given the two sets, there is no difference!

Class inheritance

It also exists InterpretableDrift that manages all of the stuff related to interpretability of drifting. It can show us the features distribution or the most important features when we are training a discriminative model or our predictive one.

Usage :book:

You can take a look to the notebooks folder where you can find one example for generic DriftChecker, one for DataDriftCheckerand other one forModelDriftChecker`.

Correct Notebooks Render :bulb:

Because pydrift uses plotly and GitHub performs a static render of the notebooks figures do not show correctly. For a rich view of the notebook, you can visit nbviewer and paste the link to the notebook you want to show, for example if you want to render 1-Titanic-Drift-Demo.ipynb you have to paste https://github.com/sergiocalde94/Data-And-Model-Drift-Checker/blob/master/notebooks/1-Titanic-Drift-Demo.ipynb into nbviewer.

More Info :information_source:

For more info check the docs available here

More demos and code improvements will coming, if you want to contribute you can contact me (sergiocalde94@gmail.com), in the future I will upload a file to explain how this would work.

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

pydrift-0.1.7.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

pydrift-0.1.7-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file pydrift-0.1.7.tar.gz.

File metadata

  • Download URL: pydrift-0.1.7.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.6.8 Linux/4.15.0-1052-aws

File hashes

Hashes for pydrift-0.1.7.tar.gz
Algorithm Hash digest
SHA256 614b96ccca2d73db8e0941776a1684c77f0c6480d59e2504dd5aa93c6c2e8a7b
MD5 1b872e7b6a7aa5cdb98ab37ab403445b
BLAKE2b-256 ca678ac4fea9ebfc52123dee8736b1b836fbe3b9887e76a40c241b6d99f12726

See more details on using hashes here.

File details

Details for the file pydrift-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: pydrift-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.6.8 Linux/4.15.0-1052-aws

File hashes

Hashes for pydrift-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 9c1b50b232d16c669ff5ba254e283145b0c312f1ab73a49623fd3520d4222f90
MD5 94a39f331fce075bb74a9bf13c82dd1c
BLAKE2b-256 7ced05f2694e04adcc9a3398f6853f32bdd602f4b25f008619e8fc10a759e9c9

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