We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Data
a a b c a c a d c b c a e f a b d f
Running prefixspan-cli frequent 3 --text fmt-db1.txt gives me
prefixspan-cli frequent 3 --text fmt-db1.txt
e : 3 e e : 3 e b : 3 b : 3
The text was updated successfully, but these errors were encountered:
replace with numbers, you can get the correct results cat fmt-db1.txt 1 1 2 3 1 3 1 4 3 2 3 1 5 6 1 2 4 6
prefixspan-cli frequent 3 fmt-db1.txt 1 : 3 1 2 : 3 2 : 3
or use python
from prefixspan import PrefixSpan db = [ ... ['a','a','b','c','a','c'], ... ['a','d','c','b','c','a'], ... ['e','f','a','b','d','f'] ... ] ps = PrefixSpan(db) print(ps.frequent(3)) [(3, ['a']), (3, ['a', 'b']), (3, ['b'])]
from prefixspan import PrefixSpan
db = [ ... ['a','a','b','c','a','c'], ... ['a','d','c','b','c','a'], ... ['e','f','a','b','d','f'] ... ]
ps = PrefixSpan(db)
print(ps.frequent(3)) [(3, ['a']), (3, ['a', 'b']), (3, ['b'])]
Sorry, something went wrong.
No branches or pull requests
Data
Running
prefixspan-cli frequent 3 --text fmt-db1.txt
gives meThe text was updated successfully, but these errors were encountered: