Challenging a Predictive Model
5 Tareas
10 minutos
Escenario
U+ Bank uses Pega Customer Decision Hub™ to personalize the credit card offers that a customer receives on the U+ Bank website. The bank makes a proactive retention offer instead of a credit card offer for customers who are likely to leave the bank soon.
The bank wants to test an improved churn prediction model against a baseline model using champion/challenger methodology. You create a prediction with a baseline H2O model, introduce an improved model as a challenger, and finally promote the improved model to production.
Use the following credentials to log in to the exercise system:
| Role | User name | Password |
|---|---|---|
| Data Scientist | DataScientist | rules |
Your assignment consists of the following tasks:
Task 1: Download the artifacts
Download and save the ValidationData, ChurnBaseline, ChurnImproved files to a local drive on your computer.
Task 2: Create a validation Data Set
Use the validation data file to create a Data Set for model validation. The dataset includes customer features (age, income, credit score, etc.) and a churn outcome field.
Task 3: Create prediction with baseline model
Create a new prediction Predict Churn Risk and import the ChurnBaseline H2O model. Configure feature mappings and activate the model as the initial production model.
Task 4: Challenge with improved model
Import the ChurnImproved model as a challenger, enable model comparison using the ValidationData dataset, and approve the model.
Task 5: Promote the Challenger model
After reviewing performance comparison results, promote the ChurnImproved model from challenger to sole active model (100%), completely replacing the ChurnBaseline model in production.
Recorrido del Reto
Tareas detalladas
1 Download the artifacts
- Download the ValidationData, ChurnBaseline, ChurnImproved files to a local drive on your computer.
- Extract ValidationData.zip folder to extract the CSV file.
2 Create a validation Data Set
- On the exercise system landing page, click Pega Infinity™ to log in to Customer Decision Hub.
- Log in as a Data Scientist:
- In the User name field, enter DataScientist.
- In the Password field, enter rules.
- In the navigation pane of Customer Decision Hub, click Intelligence> Prediction Studio.
- In the header of Prediction Studio, click Prediction Studio > Infinity Studio.
- In the header of Infinity Studio, click Create > Data Model > Data Set.
- On the Create Data Set page, configure the new Data Set with the following information:
- In the Label field, enter ValidationData.
- In the Type list, select File.
- In the Apply to field, enter or select UBank-CDH-Data-Customer.
- Click Create and open to create the Data Set.
- On the File tab of the Data Set, in the File location section, select Embedded file.
- In the File Management section, click Upload file.
- In the Upload file dialog box, click Choose File.
- Select the ValidationData.csv file, and then click Upload.
- In the upper-right corner, click Save.
- In the header of Infinity Studio click Create > Data Model > Property.
- On Create Property page, complete the following details:
- In the Label field, enter Outcome.
- In the Apply to field, enter or select UBank-CDH-Data-Customer.
- Click View additional configuration options.
- Verify Data type is set to Text by default.
- Click Create and close.
3 Create prediction with baseline model
- In the header of Infinity Studio, click Infinity Studio > Prediction Studio to switch workspaces.
- On the Predictions page, click New to create a new prediction.
- In the Create a prediction dialog box, confirm Customer Decision Hub is selected and click Next.
- In the Create a prediction dialog box, complete the following steps.
- In the Prediction Name field, enter Predict Churn Risk.
- In the Outcome field, select Churn.
- In the Object field, select Customer.
5. Click Create.
6. On the Prediction: Predict Churn Risk page, navigate to Models tab.
7. In the Churn section, click more icon on Predict Churn Risk row.
8. Click Replace Scorecard and complete the following steps:
- In the Introduce challenger model dialog box, select Model and then click Next.
- Confirm that Upload model file is selected.
- Click Choose File, and upload ChurnBaseline.zip file you downloaded.
- Click Next.
- Ensure that Compare models is not selected and click Next.
- In the Candidate model name field enter ChurnBaseline.
- Click Add Challenger Model.
Nota: It will take 1-2 minutes to load, wait until the status of the model shows Challenger (Pending review).
9. On Predict Churn Risk landing page, under Churn section, click Churn Baseline (M-XX).
10. On the Model review: ChurnBaseline page complete the following steps:
- Click the Mapping tab.
- Verify that the predictors (RelationshipLengthDays, TotalLiabilities, DebtToIncomeRatio, Gender, Age, CLV, CreditScore, AnnualIncome) are auto mapped.
- Click Approve.
- In the Approve Challenger model dialog box, in the comment field enter Baseline H2O model with 8 features for churn prediction and click Approve.
4 Challenge the active model
- On the Models tab, in the ChurnBaseline row, click the more icon, and then select Introduce challenger model:
- In the Introduce challenger model dialog box, complete the following steps:
- Ensure that Upload model file is the active selection, and then click Choose file.
- Select the ChurnImproved.zip file, and then click Next.
- Select the Compare models checkbox to run a validation test of the active model against the candidate model.
- In the Validation data set list, enter or select ValidationData.
- In the Outcome column field, select Outcome, and then click Next.
- In the Candidate model name field, enter ChurnImproved.
- Click Add challenger model.
Nota: This takes 1-2 minutes to complete. Wait until the model status turns to CHALLENGER (PENDING REVIEW).
- In the Churn section, when the status of the model changes to CHALLENGER (PENDING REVIEW), click ChurnImproved(M-XXX).
- Review the model comparison, and then click Approve.
- In the approval dialog, select the Approve and start champion/challenging radio button.
- In the comment field enter Approve for champion/challenging mode - testing improve mode and click Approve.
5 Promote the challenger model
- On Predict Churn Risk landing page, under Churn section, click more icon in the on the ChurnImproved row.
- Click Promote challenger model.
- In Promote challenger model dialog box, read the note and click Promote.
Nota: Wait for the processing until the challenger model ChurnImproved becomes the only active model, removing and replacing the current champion model ChurnBaseline. After this you can submit the change for deployment. The Revision manager deploys the change request with the next revision and your changes become active.
Este Reto es para practicar lo aprendido en el siguiente Módulo:
Disponible en la siguiente misión:
¿Quiere ayudarnos a mejorar este contenido?