Lesson 1: Adding steps to your mining flow that extract the mining model
In this lesson, you will add steps to your mining flow that extract the mining model into tables.
About this task
Overview
The last step of your mining flow starts the Associations visualizer so you can view the association rule model that the Association operator creates. In this lesson, you add steps that are parallel to the Visualizer operator. These steps organize association rules into several fields and store the rules in database tables.
Tasks in this lesson
Adding an Associations Extractor operator
You must add an Associations Extractor operator to organize your mining model into fields that can be stored in tables.
About this task
Procedure
To add an Associations Extractor operator to your flow:
Procedure
Results
| ID | BODYID | HEAD | HEADNAME | LENGTH | BODYTEXT | SUPPORT | CONFIDENCE | LIFT |
|---|---|---|---|---|---|---|---|---|
| 1 | 296 | 45 | Husky Rope 200 | 3 | [ Husky Harness Extreme ] [ Husky Rope 100 ] | 0.0010155 | 0.3508772 | 24.947115 |
Notice that the table does not include product IDs for the items in the body of the rule. The table cannot have columns for the IDs because a rule body can include one or several items, depending on how you configured the Associations operator. For a shopping cart application, however, you want to retrieve association rules that are relevant to the items in the shopping cart.
| BODYID | ITEMNAME | ITEM |
|---|---|---|
| 296 | Husky Harness Extreme | 48 |
| 296 | Husky Rope 100 | 44 |
You can find an example of an SQL query that uses these tables in the last lesson of this module.
What to do next
Creating a target table and adding a Table Target operator for association rules
You must create a table to store your association rules, and add a corresponding Table Target operator to your flow.
About this task
Procedure
To create the PRODUCT_AFFINITY target table and add a Table Target operator to your flow:
Procedure
What to do next
Creating a target table and adding a Table Target operator for rule bodies
You must create a table to store your association rule bodies, and add a corresponding Table Target operator to your flow.
About this task
Procedure
To create the PRODUCT_AFFINITY_BODY target table and add a Table Target operator to your flow:
Procedure
What to do next
What's next?
In the next lesson, you will design a control flow that runs your mining flow.