source: orange/Orange/testing/regression/tests_20/reference_assoc.py @ 9952:986e9cd806f4

Revision 9952:986e9cd806f4, 410 bytes checked in by Miha Stajdohar <miha.stajdohar@…>, 2 years ago (diff)

Tests moved and renamed from orange 20.

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.