Generate dashboards
How to generate dashboards in Evidently.
After installation, import evidently
and the required tabs:
Create a pandas.DataFrame
with the dataset to analyze:
You can choose one or several of the following Tabs.
DataDriftTab
to estimate the data driftNumTargetDriftTab
to estimate target drift for the numerical target (for problem statements with the numerical target function: regression, probabilistic classification or ranking, etc.)CatTargetDriftTab
to estimate target drift for the categorical target (for problem statements with the categorical target function: binary classification, multi-class classification, etc.)RegressionPerformanceTab
to explore the performance of a regression model.ClassificationPerformanceTab
to explore the performance of a classification model.ProbClassificationPerformanceTab
to explore the performance of a probabilistic classification model and the quality of the model calibration.
You can generate the report without specifying the ColumnMapping
:
And with the column_mapping
specification:
Display the dashboard in Jupyter notebook
You can display the chosen Tabs in a single Dashboard directly in the notebook:
If the report is not displayed, this might be due to the dataset size. The dashboard contains the data necessary to generate interactive plots and can become large. The limitation depends on infrastructure. In this case, we suggest applying sampling to your dataset. In Jupyter notebook, that can be done directly with pandas. You can also generate JSON profiles instead.
Export the report as an HTML file
You can save the report as an HTML file, and open it in your browser.
If you get a security alert, press "trust HTML".
You will need to specify the path where to save your report and the report name. The report will not open automatically. To explore it, you should open it from the destination folder.
Code examples
To generate the Data Drift report and save it as HTML, run:
To generate the Data Drift and the Categorical Target Drift reports, first add a target (and/or prediction) column to the initial dataset:
Then run:
If you get a security alert, press "trust html". The HTML report does not open automatically. To explore it, you should open it from the destination folder.
To generate the Regression Model Performance report, run:
For Regression Model Performance report from a singleDataFrame
, run:
To generate the Classification Model Performance report, run:
For Probabilistic Classification Model Performance report, run:
For a classification reports from a single DataFrame
, run:
For a probabilistic classification report from a single DataFrame
, run:
Last updated