-
Notifications
You must be signed in to change notification settings - Fork 92
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
a way to edit the minlen #18
Comments
I was also unable to find this feature so I updated the
I did a couple of tests for frequent patterns and frequent closed patterns and the change did not add new any issues. After the update you should be able to do something like:
Keep in mind that the evaluation for closed patterns is not affected by the length. For example for the sequence database:
if we run the command:
you get the pattern: Patterns like: @chuanconggao If I make the update would you consider merging the changes related to max and min len parameters of the Prefix span init? |
@VBota1 Pull request is highly welcome. Thanks. |
@VBota1 - I tried to follow ur given steps. I created a new class with named as 'PrefixSpan_My'. But getting some error as mentioned below; will you be able to provide any suggestion to fix this issue? ps = PrefixSpan_My(data, minLen = 3) Error: 'NoneType' object is not callable |
For anyone else coming across this issue, one way to get around this (without requiring changes to the library) is to do the following: ps = PrefixSpan(transactions)
ps.minlen = 2
ps.maxlen = 5
result = ps.frequent(2) |
hi,
is there a way to edit the minlen? i am only interested in patterns between 2 and 5 length. (i am working in python btw)
Thanks in advance, the package works great!
The text was updated successfully, but these errors were encountered: