source: orange/orange/doc/reference/assoc.py @ 526:fe2d65da2b2a

Revision 526:fe2d65da2b2a, 410 bytes checked in by janezd <janez.demsar@…>, 10 years ago (diff)
  • moved documentation from a separate module to this one
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.