Skip to content
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

TypeError: cannot unpack non-iterable NoneType object #2

Closed
hpeiyan opened this issue Mar 4, 2021 · 1 comment
Closed

TypeError: cannot unpack non-iterable NoneType object #2

hpeiyan opened this issue Mar 4, 2021 · 1 comment

Comments

@hpeiyan
Copy link

hpeiyan commented Mar 4, 2021

from fpgrowth_py import fpgrowth
itemSetList = [['276', '303'],
 ['0', '109', '293', '160', '171'],
 ['204', '49'],
 ['204', '105'],
 ['49', '303', '105', '204', '276'],
 ['261', '255', '154', '74'],
 ['145', '261', '154']]
freqItemSet, rules = fpgrowth(itemSetList, minSupRatio=0.5, minConf=0.5)

TypeError: cannot unpack non-iterable NoneType object

@hpeiyan
Copy link
Author

hpeiyan commented Mar 4, 2021

have solved. just turn down 'minSupRatio' or delete the values returned, eg. freqItemSet, rules

@hpeiyan hpeiyan closed this as completed Mar 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant