IDAX.PREDICT_ASSOCRULES - Apply rules and patterns to new data
Use this stored procedure to apply the rules and patterns of an association rules model to other transactions.
You can apply all rules or only specific rules according to specified criteria.
Authorities
The privileges held by the authorization ID of the statement must include the IDAX_USER role. Additionally, you must be the owner of the model or have the SELECT privilege on the source model.
Syntax
IDAX.PREDICT_ASSOCRULES(in parameter_string varchar(32672))
Parameter descriptions
- parameter_string
- Mandatory one-string parameter that contains pairs of <parameter>=<value> entries that are separated by a comma.
Returned information
The number of input sequences for which at least one rule or pattern is returned as a result set.
The result set columns are as follows:
| Column name | Column type | Description |
|---|---|---|
| Name of column as specified by the tid parameter | Type of column as specified by the tid parameter | The ID of the input transaction |
| RANK | INTEGER | The rank of the rule or pattern that is associated with this input transaction. The order is specified by the sort parameter. |
| RULEID | INTEGER | The ID of the rule that is associated with this input transaction. The column is only
shown if the type parameter is |
| ITEMSETID | INTEGER | The ID of the pattern that is associated with this input transaction. The column is only
shown if the type parameter is |
| VARCHAR | The print form of the rule or pattern as returned by the PRINT_MODEL procedure | |
| LENGTH | INTEGER | The number of items in the rule or pattern |
| SUPPORT | DOUBLE | The support of the rule or pattern |
| LIFT | DOUBLE | The lift of the rule or pattern |
| CONFIDENCE | DOUBLE | The confidence of the rule The column is only shown if the type
parameter is |
Example
CALL IDAX.PREDICT_ASSOCRULES('model=retail_assoc, intable=retail, outtable=retail_assoc_out');