assoc
Returns the relationship between item sets, the minimum support, minimum lift, and minimum confidence value.
Attention: Available only with Twin Activate commercial edition.
      Syntax
rules = assoc(predict, minimum_support)
rules = assoc(predict, minimum_support, options)
Inputs
- predict
 - Contains the frequent itemsets, their support counts, and the size of each large set.
 - minimum_support
 - Threshold support value for the itemsets to be allowed.
 - options (optional)
 - Type: struct
          
- min_lift
 - Threshold lift value for the itemsets to be allowed. (default: 0)
 - min_confidence
 - Threshold confidence value for the itemsets to be allowed. (default: 0)
 
 
Outputs
- rules
 - Contains the antecedent and consequent, support counts of each, and their union, confidence and lift.
 
Example
cdata = [1, 5, 7, 8; 1, 6, 9, 7; 9, 7, 3, 2];
bdata = one_hot_encode(cdata);
predict = apriori(bdata, 0.6);
options = struct;
options.min_lift = 0.5;
options.min_confidence = 0.08;
rules = assoc(predict, 0.05, options)
rules = struct [
  aset: [Matrix] 4 x 9
  1  0  0  0  0  0  0  0  0
  0  0  0  0  0  0  1  0  0
  0  0  0  0  0  0  1  0  0
  0  0  0  0  0  0  0  0  1
  aset_support: [Matrix] 4 x 1
  0.66667
  1.00000
  1.00000
  0.66667
  confidence: [Matrix] 4 x 1
  1.00000
  0.66667
  0.66667
  1.00000
  cset: [Matrix] 4 x 9
  0  0  0  0  0  0  1  0  0
  1  0  0  0  0  0  0  0  0
  0  0  0  0  0  0  0  0  1
  0  0  0  0  0  0  1  0  0
  cset_support: [Matrix] 4 x 1
  1.00000
  0.66667
  0.66667
  1.00000
  lift: [Matrix] 4 x 1
  1
  1
  1
  1
  support: [Matrix] 4 x 1
  0.66667
  0.66667
  0.66667
  0.66667
]
    Comments
The predict input is often an output from apriori.