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

Revision 9952:986e9cd806f4, 462 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("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.