-
Notifications
You must be signed in to change notification settings - Fork 436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wrong syntax #13
Comments
Still gives me an error on |
try to replace this line with |
Thanks faithfeng, that works for printing the item sets. How to apply this pattern to the line below to print the rules? for rule, confidence in sorted(rules, key=lambda (rule, confidence): confidence): |
For python 3, I found a fix that worked for me on both prints:
|
hello faithefeng, thx |
TypeError: 'dict_items' object is not subscriptable |
for key, value in largeSet.items()[1:]: TypeError: 'dict_items' object is not subscriptable please tell me how can i resolve this |
Please help me solve the above problem |
@smitapeter use it |
@Vipinsing27 Thank you, that worked for me! |
hi, I run your code but I have received this message
File "apriori.py", line 118
for item, support in sorted(items, key=lambda (item, support): support):
^
SyntaxError: invalid syntax
Where is the error?
The text was updated successfully, but these errors were encountered: