Orange Forum • View topic - AssociationRulesInducer.support', (float expected)

AssociationRulesInducer.support', (float expected)

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

AssociationRulesInducer.support', (float expected)

Postby koala » Fri May 11, 2012 10:11

Hi, I am able to read a tab seperated CSV file successfully, with headers on top. However the code

Code: Select all
import Orange
data = Orange.data.Table("orders.txt")
data = Orange.data.preprocess.scaling.discretize_domain(data, remove_unused_values=1, number_of_intervals=3)
rules = Orange.associate.AssociationRulesSparseInducer(data, support = 0.3)
print "%4s %4s  %s" % ("Supp", "Conf", "Rule")
for r in rules[:5]:
    print "%4.1f %4.1f  %s" % (r.support, r.confidence, r)


returns

Code: Select all
    rules = Orange.associate.AssociationRulesSparseInducer(data, support = 0.3)
TypeError: invalid parameter type for Orange.associate.AssociationRulesSparseInducer.support', (float expected)


Any ideas?

Re: AssociationRulesInducer.support', (float expected)

Postby Ales » Fri May 11, 2012 10:47

That is strange.
Can you try this:
Code: Select all
inducer = Orange.associate.AssociationRulesSparseInducer(support = 0.3)
rules = inducer(data)


Return to Questions & Support



cron