Complete the code to import the library used for data drift detection.
from evidently.[1] import Report
The report module from Evidently is used to create data drift detection reports.
Complete the code to create a data drift report object.
data_drift_report = [1](metrics=[DataDriftTable()])The Report class is used to create a report object that can include data drift metrics.
Fix the error in the code to run the data drift report on reference and current data.
data_drift_report.[1](reference_data=ref_data, current_data=curr_data)The run method executes the report calculation on the given datasets.
Fill both blanks to save the data drift report as an HTML file.
with open('drift_report.[1]', '[2]') as f: f.write(data_drift_report.html())
The report is saved as an HTML file, so the extension is html. The file mode to write is w.
Fill all three blanks to create a dictionary of drift metrics filtered by threshold.
drift_metrics = {k: v for k, v in data_drift_report.[1]().items() if v [2] [3]The as_dict() method returns the report data as a dictionary. The filter keeps metrics greater than 0.1.