Complete the code to import Evidently's Report class.
from evidently.report import [1]
The Report class is used to create monitoring reports in Evidently.
Complete the code to add a data drift metric to the Evidently report.
from evidently.metric_preset import [1] report = Report(metrics=[DataDriftPreset()])
DataDriftPreset is the preset metric to detect data drift in Evidently reports.
Fix the error in the code to run the Evidently report on current and reference data.
report.run(current_data=[1], reference_data=ref_data)The variable holding the current dataset must be passed correctly. Here, current_df is the correct variable name.
Fill both blanks to save the Evidently report as an HTML file.
with open([1], [2]) as f: f.write(report.as_html())
To save the report as HTML, open a file with write mode 'w' and a filename ending with .html.
Fill all three blanks to create a monitoring dashboard with Evidently and save it as HTML.
from evidently.dashboard import [1] from evidently.dashboard.tabs import [2] dashboard = Dashboard(tabs=[[3]()])
The Dashboard class is imported from evidently.dashboard, and the DataDriftTab tab is imported from evidently.dashboard.tabs. The dashboard is created with the DataDriftTab instance.