Exporting historical data
4 Tasks
15 mins
Scenario
U+ Bank has implemented Pega Customer Decision Hub™ to display a personalized credit card offer to eligible customers on their website. As a data scientist, you want to export the raw data used by the Web Click Through Rate adaptive model that aims to optimize the click through rate of the web banners that contain the credit card offers.
Use the following credentials to log in to the exercise system:
Role |
Username |
Password |
Data scientist |
DataScientist |
rules |
System architect |
CRMDecisioningAdministrator |
install |
Your assignment consists of the following tasks:
Task 1: Configure the recording of historical data
Change the settings of the Web Click Through Rate adaptive model to enable the recording of historical data generated by the model. Set the sample percentage for both positive and negative responses to 100%.
Task 2: Create a data set
Create a new data set and set the Apply to class to PegaCRM-Data-Customer and Add to ruleset to Pega-CRM-Artifacts. Map the data set to the file in the repository that contains the historical data.
Task 3: Trigger the creation of customer interaction records
On the U+ Bank website, log in multiple times and generate two negative responses by ignoring the banner and one positive response by clicking on the offer.
Task 4: Export the data set and examine the JSON file
In Dev Studio, export the data set. The data set is exported in the JSON format. Examine the file by answering the following questions:
- In the first record, who is the customer, what is the treatment the customer received and what is the outcome of the interaction?
- How many predictors have a captured value, and how many predictors are configured in the adaptive model of the first record? What explains the difference?
Challenge Walkthrough
Detailed Tasks
1 Configure the recording of historical data
- Log in as a data scientist with user name DataScientist and password rules.
- In the left navigation pane, click Intelligence > Prediction Studio > Models.
- Click Web_Click_through_Rate to open the model.
- On the Settings tab, in the Model update frequency section, note that the model is set to update to update after one response.
Note: This frequency setting is for demonstration purposes only. A web banner typically has a very high number of customer interaction and should be updated after a significant number is reached.
- In the Recording historical data section, mark Recording historical data as active.
- Confirm that the sample percentage for both Clicked and NoResponse are set to 100%.
Note: A web banner typically has a very high number of negative responses, so for these items, a low sampling percentage is appropriate. For demonstration purposes, the sample percentage for NoResponse is set to 100%.
- In the upper right, click Save.
2 Create a data set
- In the left navigation pane, click Data > Data sets.
- In the upper right, click New.
- Configure the data set with the following information:
- Name: ADMPayload
- Type: File
- Apply to: PegaCRM-Data-Customer
- Add to ruleset: Pega-CRM-Artifacts
- Ruleset version: 01-01-99
3 Trigger the creation of customer interaction records
- On the Customer Engagement & Analytics landing page, click U+ Bank.
- In the upper right, log in as customer Troy.
- Ignore the offer and log out.
- Log in as customer Barbara.
- Ignore the offer and log out.
- Log in as customer Joanna.
- On the banner, click Learn more.
- Return to Prediction Studio.
- In the lower left, click DS and log off.
4 Export the data set and examine the JSON file
- Log in as a system architect with user name CRMDecisioningAdministrator and password install.
- In the upper right, search for ADMPayload.
- Click ADMPayload.
- In the upper right, click Actions > Export.
- In the Export data set dialog box, click Export.
Note: It may take several minutes to populate the data set. If the number of processed records does not match the number of logins, close the Export data set dialog box and retry.
- Click Download file.
- Save the ZIP file locally and extract the data.json file.
- Open the data.json file in a text editor that displays the JSON format correctly .
Question – In the first record, who is the customer, what is the treatment the customer received, and what is the outcome of the interaction? |
Question – How many predictors have a captured value, and how many predictors are configured in the adaptive model of the first record? What explains the difference? |
- In the JSON file, count the predictors for which a value has been recorded.
- Return to Dev Studio.
- In the lower left, click CA and log off.
- Log in as a data scientist with user name DataScientist and password rules.
- In the left navigation pane, click Intelligence > Prediction Studio > Models.
- Click Web_Click_through_Rate to open the model.
- On the Predictors tab, note the number of configured fields.
Want to help us improve this content?