Hub
Pricing About
NodeNode / Predictor

Spark Association Rule (Apply)

Tools & ServicesApache SparkMiningItem Sets / Association Rules
Drag & drop
Like

This node applies association rules created by a Spark rule learner*. The rules are applied to a given column with item sets (transactions). A rule matches an item set, if the item set contains all antecedent items of the rule. The consequent items of the matching rules are then added to the output set of predicted items if they are not already included in the input items collection (the output set contains only new items).

To avoid memory and computations explosions, the number of used association rules can be limited. A warning will be added to the node if the limit is reached and only the first n rules are used (this means randomly chosen on a unsorted set of rules).

The Spark Association Rule Learner Node can be used to generate the association rules. The Spark GroupBy or Spark SQL Node can be used to generate a collection of items as input.

Rules with missing values in the selected antecedent or consequent column and item rows with missing values in the selected item column are removed .

This node requires at least Apache Spark 2.0.


(*) RULE LEARNER is a registered trademark of Minitab, LLC and is used with Minitab’s permission.

Node details

Input ports
  1. Type: Spark Data
    Association rules
    Spark DataFrame with association rules
  2. Type: Spark Data
    Spark data
    Spark DataFrame with item collection column
Output ports
  1. Type: Spark Data
    Spark data
    Spark DataFrame with output column that holds the items which were predicted according to the association rules

Extension

The Spark Association Rule (Apply) node is part of this extension:

  1. Go to item

Related workflows & nodes

  1. Go to item
  2. Go to item
  3. Go to item

KNIME
Open for Innovation

KNIME AG
Talacker 50
8001 Zurich, Switzerland
  • Software
  • Getting started
  • Documentation
  • Courses + Certification
  • Solutions
  • KNIME Hub
  • KNIME Forum
  • Blog
  • Events
  • Partner
  • Developers
  • KNIME Home
  • Careers
  • Contact us
Download KNIME Analytics Platform Read more about KNIME Business Hub
© 2025 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Data Processing Agreement
  • Credits