# apriorinode properties #

![Apriori node icon](https://dataplatform.cloud.ibm.com/docs/content/wsd/nodes/scripting_guide/clementine/images/apriorinodeicon.png)The Apriori node extracts a set of rules from the data, pulling out the rules with the highest information content\. Apriori offers five different methods of selecting rules and uses a sophisticated indexing scheme to process large data sets efficiently\. For large problems, Apriori is generally faster to train; it has no arbitrary limit on the number of rules that can be retained, and it can handle rules with up to 32 preconditions\. Apriori requires that input and output fields all be categorical but delivers better performance because it'ss optimized for this type of data\.

<!-- <table "summary="apriorinode properties" id="apriorinodeslots__table_o4h_jj3_cdb" class="defaultstyle" "> -->

apriorinode properties  

Table 1\. apriorinode properties

| `apriorinode` Properties    | Values                                                                                                                   | Property description                                                                                                                                                                                                                                                                                           |
| --------------------------- | ------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `consequents`               | *field*                                                                                                                  | Apriori models use Consequents and Antecedents in place of the standard target and input fields\. Weight and frequency fields are not used\. See [Common modeling node properties](https://dataplatform.cloud.ibm.com/docs/content/wsd/nodes/scripting_guide/clementine/modelingnodeslots_common.html#modelingnodeslots_common) for more information\.                                                                                                    |
| `antecedents`               | \[*field1 \.\.\. fieldN*\]                                                                                               |                                                                                                                                                                                                                                                                                                                |
| `min_supp`                  | *number*                                                                                                                 |                                                                                                                                                                                                                                                                                                                |
| `min_conf`                  | *number*                                                                                                                 |                                                                                                                                                                                                                                                                                                                |
| `max_antecedents`           | *number*                                                                                                                 |                                                                                                                                                                                                                                                                                                                |
| `true_flags`                | *flag*                                                                                                                   |                                                                                                                                                                                                                                                                                                                |
| `optimize`                  | `Speed`  <br>`Memory`                                                                                                    |                                                                                                                                                                                                                                                                                                                |
| `use_transactional_data`    | *flag*                                                                                                                   |                                                                                                                                                                                                                                                                                                                |
| `contiguous`                | *flag*                                                                                                                   |                                                                                                                                                                                                                                                                                                                |
| `id_field`                  | *string*                                                                                                                 |                                                                                                                                                                                                                                                                                                                |
| `content_field`             | *string*                                                                                                                 |                                                                                                                                                                                                                                                                                                                |
| `mode`                      | `Simple``Expert`                                                                                                         |                                                                                                                                                                                                                                                                                                                |
| `evaluation`                | `RuleConfidence`  <br>`DifferenceToPrior`  <br>`ConfidenceRatio`  <br>`InformationDifference`  <br>`NormalizedChiSquare` |                                                                                                                                                                                                                                                                                                                |
| `lower_bound`               | *number*                                                                                                                 |                                                                                                                                                                                                                                                                                                                |
| `optimize`                  | `Speed`  <br>`Memory`                                                                                                    | Use to specify whether model building should be optimized for speed or for memory\.                                                                                                                                                                                                                            |
| `rules_without_antececents` | *boolean*                                                                                                                | Select to allow rules that include only the consequent (item or item set)\. This is useful when you are interested in determining common items or item sets\. For example, `cannedveg` is a single\-item rule without an antecedent that indicates purchasing `cannedveg` is a common occurrence in the data\. |

<!-- </table "summary="apriorinode properties" id="apriorinodeslots__table_o4h_jj3_cdb" class="defaultstyle" "> -->

<!-- </article "role="article" "> -->