Hello pdstools#

This is a basic example of using pdstools to visualize the ADM datamart.

To run this first install the pdstools library as per the installation instructions of the GitHub repository https://github.com/pegasystems/pega-datascientist-tools. Then you can import the ADMDatamart class as such:

[2]:
from pdstools import ADMDatamart, datasets

Then to run this example, use a sample dataset included or export your own from Pega. These steps are detailed on the Wiki.

Change the path if it is different from the current working directory. The class ADMDatamart will read ADM datamart and standardize the fields returned. It is very flexible and can read from datamart export zips, from CSV, parquet etc and has a number of arguments to fine tune the behavior.

Because we import from the CDH Sample dataset hosted on GitHub, these two commands are identical:

[3]:
# ADMDatamart = ADMDatamart("../../data")
ADMDatamart = datasets.CDHSample()

Bubble Chart#

The following plot shows the bubble chart as shown on the Pega out-of-the-box model report landing page. The methods has options to zoom in into only certain channels/issues etc.

[4]:
ADMDatamart.plotPerformanceSuccessRateBubbleChart()

Predictor Overview#

Load predictor data and show a basic predictor performance overview.

[5]:
ADMDatamart.plotPredictorPerformance(top_n=30)

Next steps#

For more examples and sample code please see the pdstools Wiki and the documentation.