source: orange/orange/doc/reference/assoc-agrawal2.py @ 5849:2cd285a22ce4

Revision 5849:2cd285a22ce4, 462 bytes checked in by blaz <blaz.zupan@…>, 5 years ago (diff)

the second part of assoc-agrawal, w/o fancy printout (just for regression testing)

Line 
1import orange
2
3data = orange.ExampleTable("inquisition")
4rules = orange.AssociationRulesSparseInducer(data,
5            support = 0.5, storeExamples = True)
6
7rule0 = rules[10]
8
9print "Rule:", rule0
10print "Match left: "
11print [rule0.examples[i] for i in rule0.matchLeft]
12print "\nMatch both: "
13print [rule0.examples[i] for i in rule0.matchBoth]
14
15inducer = orange.AssociationRulesSparseInducer(support = 0.5)
16itemsets = inducer.getItemsets(data)
17print itemsets[5]
Note: See TracBrowser for help on using the repository browser.