Skip to main content

Welcome to pydrift 0.1.8

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 ✌️

pip install pydrift

Structure 📐

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

  • DataDriftChecker: searches for drift in the variables, check if their distributions have changed
  • ModelDriftChecker: searches 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 and DriftCheckerEstimator:

  • InterpretableDrift: 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
  • DriftCheckerEstimator: allows pydrift to be used as a sklearn estimator, it works lonely or in a pipeline, like any sklearn estimator

Usage 📖

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 💡

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 ℹ️

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.

Metadata

Release files for pydrift 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pydrift 0.1.8
File Size Uploaded
pydrift-0.1.8.tar.gz 12.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pydrift 0.1.8
File Interpreter ABI Platform
pydrift-0.1.8-py3-none-any.whl Python 3 none any Details

Total release size: 25.3 kB

Release files / pydrift-0.1.8.tar.gz

Download URL pydrift-0.1.8.tar.gz
Size 12.0 kB
Tags Source
SHA-256 checksum
How to use checksums
572a5f5ee3cfde052ee858cc2ed741fbb5c3df9fbcd44a70fe1d208b751a163e
BLAKE2b-256 checksum
How to use checksums
cccf8d7799c72c3500e0497a85edadb93e29a74ccfccd7b187881188b980a778
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/0.12.17 CPython/3.6.8 Linux/4.15.0-1052-aws

Release files / pydrift-0.1.8-py3-none-any.whl

Download URL pydrift-0.1.8-py3-none-any.whl
Size 13.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd0ec552055e607e43d2b5f699d4a36c1fd26ab4adbd2306c26db7242fa387ab
BLAKE2b-256 checksum
How to use checksums
46132229912bca5dd816fc93d4326b8604b1f8a856a75830968c559ae8500678
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/0.12.17 CPython/3.6.8 Linux/4.15.0-1052-aws

Release history Release notifications | RSS feed

0.2.15

2 release files

0.2.12

2 release files

0.2.10

2 release files

0.2.9

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

This release

0.1.8 This release

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page