Show raw data in Reports
How to change data aggregation in plots.
Pre-requisites:
You know how to generate Reports with default parameters.
You know how to pass custom parameters for Reports or Metrics.
Code example
You can refer to an example How-to-notebook:
Default
Evidently Reports include visualizations, such as plotting values over time, which are aggregated by default. This keeps Reports size manageable, even with millions of evaluated rows.
For example, you can create a custom Report:
report = Report(metrics=[
RegressionPredictedVsActualScatter(),
RegressionPredictedVsActualPlot()
])
report.run(reference_data=housing_ref, current_data=housing_cur)
reportHere is how the Scatter Plot in this Report will look:

Non-aggregated plots for Reports
If you prefer to see raw data plots (individual prediction points), you can enable this option. This will store raw data points inside the Report.
To see non-aggregated plots, set the raw_data parameter as True in the render options.
You can set it on the Report level:
report = Report(
metrics=[
RegressionPredictedVsActualScatter(),
RegressionPredictedVsActualPlot()
],
options={"render": {"raw_data": True}}
)
report.run(reference_data=housing_ref, current_data=housing_cur)
reportAll plots in the Report will be non-aggregated. Here is how the Scatter Plot in this Report will look:

Non-aggregated plots for Metrics
If you want to generate non-aggregated plots only for some visualizations, you can pass the option to the chosen Metrics:
report = Report(
metrics=[
RegressionPredictedVsActualScatter(options={"render": {"raw_data": True}}),
RegressionPredictedVsActualPlot()
],
)
report.run(reference_data=housing_ref, current_data=housing_cur)
reportLast updated