- You installed Evidently.
- You created a Dataset with the Data Definition.
- (Optional) for text data, you added Descriptors.
Imports
Import the Metrics and Presets you plan to use.Presets
Available Presets. Check available evals in the Reference table.
run
the Report, the resulting my_eval
will contains the computed values for each metric, along with associated metadata and visualizations. (We sometimes refer to this computation result as a snapshot
).
You can render the results in Python, export as HTML, JSON or Python dictionary or upload to the Evidently platform. Check more in output formats.
run
it:
eval_data_1
is the current data you evaluate, the second eval_data_2
is the reference dataset you consider as a baseline for drift detection. You can also pass it explicitly:
Custom Report
Available Metrics and parameters. Check available evals in the Reference table.
Generating multiple column-level Metrics: You can use a helper function to easily generate multiple column-level Metrics for a list of columns. See the page on Metric Generator.
k
parameter (Required).
Compare results
If you computed multiple snapshots, you can quickly compare the resulting metrics side-by-side in a dataframe:Group by
You can calculate metrics separately for different groups in your data, using a column with categories to split by. Use theGroupyBy
metric as shown below.
Example. This will compute the maximum value of salaries by each label in the “Department” column.