@@ -182,8 +182,8 @@ we can also mention [NannyML](https://github.com/NannyML/nannyml), [WhyLogs](htt
182182 1. Add the following code to the ` data_drift.py` file to create a report on the data drift:
183183
184184 ` ` ` python
185- from evidently.report import Report
186- from evidently.metric_preset import DataDriftPreset
185+ from evidently.legacy. report import Report
186+ from evidently.legacy. metric_preset import DataDriftPreset
187187 report = Report(metrics=[DataDriftPreset()])
188188 snapshot = report.run(reference_data=reference_data, current_data=current_data)
189189 snapshot.save_html(' report.html' )
@@ -202,7 +202,7 @@ we can also mention [NannyML](https://github.com/NannyML/nannyml), [WhyLogs](htt
202202 The `DataQualityPreset` checks the quality of the data:
203203
204204 ```python
205- from evidently.metric_preset import DataDriftPreset, DataQualityPreset
205+ from evidently.legacy.presets import DataDriftPreset, DataQualityPreset
206206 report = Report(metrics=[DataDriftPreset(), DataQualityPreset()])
207207 ```
208208
@@ -217,7 +217,7 @@ we can also mention [NannyML](https://github.com/NannyML/nannyml), [WhyLogs](htt
217217 The `TargetDriftPreset` checks the distribution of the target values:
218218
219219 ```python
220- from evidently.metric_preset import DataDriftPreset, DataQualityPreset, TargetDriftPreset
220+ from evidently.legacy.presets import DataDriftPreset, DataQualityPreset, TargetDriftPreset
221221 report = Report(metrics=[DataDriftPreset(), DataQualityPreset(), TargetDriftPreset()])
222222 ```
223223
@@ -234,8 +234,8 @@ we can also mention [NannyML](https://github.com/NannyML/nannyml), [WhyLogs](htt
234234 all tests passed and `False` otherwise.
235235
236236 ```python
237- from evidently.test_suite import TestSuite
238- from evidently.tests import TestNumberOfMissingValues
237+ from evidently.legacy. test_suite import TestSuite
238+ from evidently.legacy. tests import TestNumberOfMissingValues
239239 data_test = TestSuite(tests=[TestNumberOfMissingValues()])
240240 data_test.run(reference_data=reference_data, current_data=current_data)
241241 result = data_test.as_dict()
0 commit comments