0Pricing
MLOps Academy · Lesson

Generate Drift Reports with Evidently

Produce shareable drift and quality reports.

Generate Drift Reports with Evidently is a free MLOps Academy lesson on CoddyKit — lesson 3 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the MLOps Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Drift You Can Share

Raw PSI and KS numbers are great for code, but teammates want a clear picture. Evidently turns drift checks into shareable visual reports. 📈

What Evidently Does

Evidently is an open-source Python library that compares a reference dataset against current data and renders ready-made drift and quality reports.

Install It First

Getting started is a single pip install. Then you import the report and preset you need for the analysis.

pip install evidently

Reference vs Current

Every Evidently report needs two frames: a reference baseline, usually training data, and the current production data you want to compare against it.

reference = train_df
current = production_df

The Data Drift Preset

A preset bundles many checks at once. DataDriftPreset runs a per-feature drift test and summarizes how many features moved.

from evidently.report import Report
from evidently.metric_preset import DataDriftPreset

Run a Report

Build a Report with your chosen metrics, then run it on both datasets. Evidently picks sensible drift tests per column automatically.

report = Report(metrics=[DataDriftPreset()])
report.run(reference_data=reference, current_data=current)

Save It as HTML

Export the report to a single HTML file. Anyone can open it in a browser, no Python required, which makes sharing painless.

report.save_html("drift_report.html")

Get the Result as a Dict

For automation, pull the report out as a dict instead of HTML. Now your pipeline can read drift flags and act on them in code.

result = report.as_dict()
drift = result["metrics"][0]["result"]

Beyond Drift

Evidently is not only for drift. The DataQualityPreset flags missing values and odd ranges, so you catch broken inputs alongside shifting ones.

Test Suites for Pass or Fail

When you want a clear verdict, use an Evidently TestSuite. It returns pass or fail per check, perfect for gating a CI pipeline.

Schedule It

The real power comes from running reports on a schedule, like daily, and storing each one. Over time you build a living history of your data health. ⏱️

Quick Check

One question on wiring drift into automation.

Recap

You met Evidently: feed it reference and current data, run a preset, then save HTML for humans or as_dict for automation. Schedule it to track data health over time. 🎯

Frequently asked questions

Is the “Generate Drift Reports with Evidently” lesson free?

Yes — the full text of “Generate Drift Reports with Evidently” is free to read here on the web, and the MLOps Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the MLOps Academy course, upgrade to CoddyKit PRO.

What will I learn in “Generate Drift Reports with Evidently”?

Produce shareable drift and quality reports. You practise MLOps Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start MLOps Academy?

No prior experience is required. MLOps Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 3 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Generate Drift Reports with Evidently” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this MLOps Academy lesson?

Yes. Every MLOps Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Data Drift vs Concept Drift
  2. Measure Drift with PSI and KS
  3. Generate Drift Reports with Evidently
  4. Set Drift Thresholds and Triggers
← Back to MLOps Academy