source: orange/Orange/doc/reference/assoc-agrawal2.py @ 9671:a7b056375472

Revision 9671:a7b056375472, 462 bytes checked in by anze <anze.staric@…>, 2 years ago (diff)

Moved orange to Orange (part 2)

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.