Automating the building and scoring of models

You can automate the building and scoring of models by using the Schedule process box in Unica Campaign flowcharts or by using the Unica Scheduler. The Scheduler operates only on the full flowchart.

About this task

You can implement the automated building and scoring of models in two separate flowcharts that run with different frequencies. For example, you might want the scoring to be done weekly, while the model is rebuilt monthly.

If both of the building and scoring processes are in the same flowchart, make sure that modeling is complete and successful before the scoring starts. You can create a temporal connection between the SPSS® Model process and the SPSS® Score process, which is shown as a dotted line in the flowchart.

Note: The following task is one example of how the flowchart can be configured. You might use a Select process box to select the audience or use a Sample or Segment process box to choose a portion of the audience with which to build the model.

To automate the building and scoring of models, complete the following steps.

Procedure

  1. In Unica Campaign, open a flowchart in Edit mode.
  2. To automate the building of models, drag the following process boxes from the palette to your flowchart workspace and connect them in the following order:
    1. Schedule: Connect to all top-level process boxes that must start when flowchart run begins.
    2. Select, and other process boxes as needed
    3. SPSS® Model
  3. To automate batch scoring, drag the following process boxes from the palette to your flowchart workspace and connect them in the following order:
    1. Schedule: Connect to all top-level process boxes that must start when flowchart run begins.
    2. Select, and other process boxes as needed
    3. SPSS® Score
    4. Snapshot: The Snapshot process writes the scores to a database table or flat file for use by other flowcharts and processes.
  4. To create a single flowchart that automates building and scoring, drag the following process boxes from the palette to your workspace and connect them in the following order:
    Note: Connect the Schedule process box to all top-level process boxes that must start when flowchart run begins.
    1. Schedule to Select
    2. Select to SPSS® Model
    3. Select to SPSS® Score

      Add a temporal connection from the SPSS® Model process box to the SPSS® Score process box.

      Note: If the model is not built, you cannot select the model stream in the SPSS® Score process box.
    4. SPSS® Score to Snapshot

      The Snapshot process writes the scores to a database table.

    Note: Items a and b comprise one branch and items c and d comprise another branch in a single flowchart.
  5. Configure the process boxes.
  6. Save the flowchart.
  7. Test the processes in the flowchart.