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

Issue with key parameter input #22

Open
WYannis opened this issue Jun 20, 2019 · 4 comments
Open

Issue with key parameter input #22

WYannis opened this issue Jun 20, 2019 · 4 comments

Comments

@WYannis
Copy link

WYannis commented Jun 20, 2019

Hello,

Thank you for your very convenient package. Computation time is great.

I'd like to count the occurrences of patterns in my database, not just the number of times they appear as prefixes. Thus, I wanted to specify a key function that could count this. Unfortunately, everytime i try to use the key parameter, the output is : 'NoneType' object is not callable'. I then tried to change the defaultkey in prefixspan.py to len(patt) instead of len(matches) and the same happened. I then changed it back to len(matches) and rather than going back to a normal output it was still 'NoneType object is not callable'.

Would you have any idea on where the problem comes from ?

I work on Oracle VM Ubuntu 16, Anaconda python 3.7, Spyder IDE

Thank you.

@helenkimber
Copy link

I am also having the same problem. Does anyone know what I'm doing wrong?

@pheman
Copy link

pheman commented Jun 3, 2020

same issue, however it seems that the project is out of valid maintainence

@chuanconggao
Copy link
Owner

No sure exactly why without failed examples, as default key is used in algorithm. Can you share some examples?

BTW, this project is currently having low activities due to my busy work schedule, but I will keep it alive.

@trmanish
Copy link

how can one get rules of A---B form from this? This gives frequent sequences but how to get rules then

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

5 participants