0 / 0
Building the flow (SPSS Modeler)

Building the flow

  1. Add a Data Asset node that points to pm_customer_train1.csv.
  2. Add a Type node, and select response as the target field (Role = Target). Set the measure for this field to Flag.
    Figure 1. Setting the measurement level and role
    Setting the measurement level and role
  3. Set the role to None for the following fields: customer_id, campaign, response_date, purchase, purchase_date, product_id, Rowid, and X_random. These fields will be ignored when you are building the model.
  4. Click Read Values in the Type node to make sure that values are instantiated.

    As we saw earlier, our source data includes information about four different campaigns, each targeted to a different type of customer account. These campaigns are coded as integers in the data, so to make it easier to remember which account type each integer represents, let's define labels for each one.

    Figure 2. Choosing to specify values for a field
    Choosing to specify values for a field
  5. On the row for the campaign field, click the entry in the Value mode column.
  6. Choose Specify from the drop-down.
    Figure 3. Defining labels for the field values
    Defining labels for the field values
  7. Click the Edit icon in the column for the campaign field. Type the labels as shown for each of the four values.
  8. Click OK. Now the labels will be displayed in output windows instead of the integers.
  9. Attach a Table node to the Type node.
  10. Hover over the Table node and click the Run icon .
  11. In the Outputs panel, double-click the table output to open it.
  12. Click OK to close the output window.

Although the data includes information about four different campaigns, you will focus the analysis on one campaign at a time. Since the largest number of records fall under the Premium account campaign (coded campaign=2 in the data), you can use a Select node to include only these records in the flow.

Figure 4. Selecting records for a single campaign
Selecting records for a single campaign
Generative AI search and answer
These answers are generated by a large language model in watsonx.ai based on content from the product documentation. Learn more