Building the Stream
- Add a Statistics File source node pointing to pm_customer_train1.sav,
located in the Demos folder of your IBM® SPSS® Modeler installation.
Figure 1. SLRM sample stream - Add a Filler node and select campaign as the Fill in field.
- Select a Replace type of Always.
- In the Replace with text box, enter
to_string(campaign) and click OK.
Figure 2. Derive a campaign field - Add a Type node, and set the Role to None for
the customer_id, response_date, purchase_date, product_id, Rowid,
and X_random fields.
Figure 3. Changing the Type node settings - Set the Role to Target for the campaign
and response fields. These are the fields on which you want to base your predictions.
Set the Measurement to Flag for the response field.
- Click Read Values, then OK.
Because the campaign field data show as a list of numbers (1, 2, 3, and 4), you can reclassify the fields to have more meaningful titles.
- Add a Reclassify node to the Type node.
- In the Reclassify into field, select Existing field.
- In the Reclassify field list, select campaign.
- Click the Get button; the campaign values are added to the Original value column.
- In the New value column, enter the following campaign names in the
first four rows:
- Mortgage
- Car loan
- Savings
- Pension
- Click OK.
Figure 4. Reclassify the campaign names - Attach an SLRM modeling node to the Reclassify node. On the Fields tab,
select campaign for the Target field, and response for
the Target response field.
Figure 5. Select the target and target response - On the Settings tab, in the Maximum number of predictions per record field,
reduce the number to 2.
This means that for each customer, there will be two offers identified that have the highest probability of being accepted.
- Ensure that Take account of model reliability is selected, and click Run.
