MLOps#
Deployment and life-cycle management of discovered equations (MLOps).
Equations are small, transparent and portable, which makes them well suited to industrial deployment – but like any data-driven model they are valid only on the data they were fitted to. This module supports the life cycle:
fingerprint()– a hash of the training data, stored with the model;ModelRegistry– a file-based registry of versioned equations with metrics, data fingerprints, tags and stages (staging,production,archived), and structural comparison of versions;ModelCard– documentation of a model in the spirit of model cards (Mitchell et al., 2019): intended use, data, equation, metrics, validity range, constraints, limitations; Markdown and HTML;RunTracker– run logging to JSON lines, with an optional MLflow adapter (MLflow is imported only if installed);DriftMonitor– monitoring of new data: population stability index and Kolmogorov–Smirnov tests per variable, the share of samples outside the training box (where an equation extrapolates), residual drift by the Page–Hinkley test (Page, 1954), and a recommendation (ok / warning / retrain);environment_info()– package versions for reproducibility.
Model registry, model cards, run tracking and drift monitoring.
Classes#
|
File-based registry of versioned equations. |
|
Documentation of a discovered equation. |
|
Log parameters, metrics and equations of search runs. |
|
Monitor the inputs and residuals of a deployed equation. |
Functions#
|
SHA-256 fingerprint (first 16 hex digits) of the data. |
Versions of Python, eqdisco and its main dependencies. |
|
|
PSI of a variable between reference and new samples (quantile bins of the reference). |
|
Value that the PSI of two samples of one distribution exceeds with probability |