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

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

Moved orange to Orange (part 2)

Line 
1import orange
2
3data = orange.ExampleTable("lenses")
4
5print "\nAssociation rules"
6rules = orange.AssociationRulesInducer(data, support = 0.3)
7for r in rules:
8    print "%5.3f  %5.3f  %s" % (r.support, r.confidence, r)
9
10print "\nClassification rules"
11rules = orange.AssociationRulesInducer(data, support = 0.3, classificationRules = 1)
12for r in rules:
13    print "%5.3f  %5.3f  %s" % (r.support, r.confidence, r)
Note: See TracBrowser for help on using the repository browser.