Ticket #1090 (new wish)

Opened 2 years ago

associate rules from sparse data in tab file

Reported by: blaz Owned by: janez
Milestone: Next 2.x Component: addon/bioinformatics
Severity: minor Keywords:
Cc: Blocking:
Blocked By:

Description

The output is strange and includes tuples "Bread=#RNGE". The script:

import Orange
data = Orange.data.Table("market-basket.tab")
rules = Orange.associate.AssociationRulesSparseInducer(data, support=0.3)
print "%4s %4s  %s" % ("Supp", "Conf", "Rule")
for r in rules[:5]:
    print "%4.1f %4.1f  %s" % (r.support, r.confidence, r)

outputs

Supp Conf  Rule
 0.6  0.8  Bread=#RNGE -> Milk=#RNGE
 0.6  0.8  Milk=#RNGE -> Bread=#RNGE
 0.4  0.5  Bread=#RNGE -> Milk=#RNGE Diapers=#RNGE
 0.4  0.7  Bread=#RNGE Milk=#RNGE -> Diapers=#RNGE
 0.4  0.7  Bread=#RNGE Diapers=#RNGE -> Milk=#RNGE
Note: See TracTickets for help on using tickets.