0
0
MLOpsdevops~10 mins

Evidently AI for monitoring in MLOps - Step-by-Step Execution

Choose your learning style9 modes available
Process Flow - Evidently AI for monitoring
Start Data Stream
Collect Data Batch
Feed Data to Evidently AI
Evidently AI Analyzes Data
Generate Monitoring Report
Check for Drift or Anomalies?
NoContinue Monitoring
Yes
Trigger Alert or Action
Log and Visualize Results
Repeat for Next Batch
Data flows from collection to Evidently AI analysis, which detects issues and triggers alerts if needed, then logs results for continuous monitoring.
Execution Sample
MLOps
from evidently.dashboard import Dashboard
from evidently.tabs import DataDriftTab

# Create dashboard
dashboard = Dashboard(tabs=[DataDriftTab()])

# Run on data
dashboard.calculate(reference_data, current_data)

# Save report
dashboard.save('report.html')
This code creates a data drift monitoring dashboard with Evidently AI, analyzes reference and current data, then saves an HTML report.
Process Table
StepActionInput DataEvidently AI ProcessOutput/Result
1Start monitoringReference and current datasetsInitialize dashboard with DataDriftTabDashboard object ready
2Calculate metricsreference_data, current_dataCompare distributions, detect driftDrift metrics computed
3Generate reportDrift metricsCreate visual report with chartsHTML report generated
4Check drift statusDrift metricsEvaluate if drift exceeds thresholdDrift detected: Yes/No
5Trigger alert if neededDrift detected: YesSend alert or log eventAlert sent or logged
6Save reportHTML reportWrite report to file systemreport.html saved
7End of batchN/AWait for next data batchMonitoring cycle complete
💡 Monitoring cycle ends after report generation and alerting for current data batch
Status Tracker
VariableStartAfter Step 2After Step 4Final
dashboardNoneDashboard object createdDashboard with metricsDashboard saved
drift_metricsNoneComputed metricsEvaluated for driftUsed for alerting
alert_statusNoneNoneYes or NoAlert sent or not
Key Moments - 3 Insights
Why does Evidently AI need both reference and current data?
Evidently AI compares current data against reference data to detect changes or drift, as shown in execution_table step 2 where it calculates metrics by comparing both datasets.
What happens if no drift is detected?
If no drift is detected (execution_table step 4), Evidently AI continues monitoring without triggering alerts, as indicated by the 'No' branch in the concept flow.
How does Evidently AI alert users about detected drift?
When drift is detected (step 5), Evidently AI triggers alerts or logs events to notify users, ensuring timely action, as shown in the execution_table.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution_table, what is the output after step 3?
ADrift metrics computed
BHTML report generated
CAlert sent
DDashboard object created
💡 Hint
Refer to the 'Output/Result' column in execution_table row for step 3.
At which step does Evidently AI decide if drift exceeds threshold?
AStep 2
BStep 5
CStep 4
DStep 6
💡 Hint
Check the 'Action' and 'Evidently AI Process' columns in execution_table for step 4.
If no drift is detected, what happens next according to the concept flow?
AContinue monitoring without alert
BTrigger alert
CSave report and stop
DDelete report
💡 Hint
Look at the decision branch in the concept_flow ASCII diagram after 'Check for Drift or Anomalies?'.
Concept Snapshot
Evidently AI monitors data by comparing current data to reference data.
It calculates drift metrics and generates visual reports.
If drift exceeds thresholds, it triggers alerts.
Reports are saved for review.
This cycle repeats for continuous monitoring.
Full Transcript
Evidently AI is a tool used to monitor machine learning data quality by comparing current data against a reference dataset. The process starts by collecting data batches, which are then fed into Evidently AI. The tool analyzes the data to detect drift or anomalies by calculating metrics that compare distributions. It generates a visual report in HTML format showing these metrics. If the detected drift exceeds a set threshold, Evidently AI triggers alerts or logs events to notify users. The report is saved for review. This monitoring cycle repeats continuously for each new data batch to ensure model reliability and data quality.