Orange Forum • View topic - ExampleTable construction for AssociationRulesSparseInducer

ExampleTable construction for AssociationRulesSparseInducer

A place to ask questions about methods in Orange and how they are used and other general support.

ExampleTable construction for AssociationRulesSparseInducer

Postby hernan » Wed Dec 05, 2007 23:54

Hi,
I'm trying to construct an instance of ExampleTable to be used by AssociationRulesSparseInducer, but I don't want to load data from file, Basically, I want to do the same as following but instead loading from inquisition data file, copying the data from my variables.


From: http://magix.fri.uni-lj.si/orange/doc/r ... nRules.htm

assoc-agrawal.py (uses inquisition.basket)
import orange
data = orange.ExampleTable("inquisition")
rules = orange.AssociationRulesSparseInducer(data, support = 0.5)
print "%5s %5s" % ("supp", "conf")
for r in rules:
print "%5.3f %5.3f %s" % (r.support, r.confidence, r)

Thanks in advance!
Hernan

Return to Questions & Support