Hello World Example

Get to know Evidently in a couple of minutes.

You can launch this hello-world example in Jupyter notebook or Colab.

Installation

MAC OS and Linux, Jupyter notebook

Install Evidently using the pip package manager:

$ pip install evidently

Install and enable Jupyter nbextension. Run the two following commands in the terminal from the Evidently directory:

$ jupyter nbextension install --sys-prefix --symlink --overwrite --py evidently
$ jupyter nbextension enable evidently --py --sys-prefix

Colab

Install Evidently:

!pip install evidently

Imports

Import toy data and required Evidently components:

import pandas as pd

from sklearn import datasets

from evidently.test_suite import TestSuite
from evidently.test_preset import DataStabilityTestPreset

from evidently.report import Report
from evidently.metric_preset import DataDriftPreset

iris_data = datasets.load_iris(as_frame='auto')
iris_frame = iris_data.frame

Run a test suite

Split the toy data into two batches and compare them:

Get a report

Get a visual report to explore the feature distribution drift in detail:

Want to see more?

You can explore a more detailed Getting Started tutorial.

Last updated