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

set_sup #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

set_sup #3

wants to merge 1 commit into from

Conversation

nainM
Copy link

@nainM nainM commented Jul 11, 2019

No description provided.

@fzyukio
Copy link
Owner

fzyukio commented Jul 13, 2019

Um, what's this PR about?

@nainM
Copy link
Author

nainM commented Jul 14, 2019

I want to discover itemset sequence such as (2 6)->(1) using python-cspade,

for example,
in original case
zaki.txt:

1 10 2 3 4
1 15 3 1 2 3
1 20 3 1 2 6
1 25 4 1 3 4 6
2 15 3 1 2 6
2 20 1 5
3 10 3 1 2 6
4 10 3 4 7 8
4 20 2 2 6
4 25 3 1 7 8
result = spade(filename='zaki.txt', support=0.3)
print(result)
1 -- 4 4 
2 -- 4 4 
4 -- 2 2 
6 -- 4 4 
4 -> 6 -- 2 2 
4 -> 2 -- 2 2 
2 -> 1 -- 2 2 
4 -> 1 -- 2 2 
6 -> 1 -- 2 2 
4 -> 6 -> 1 -- 2 2 
4 -> 2 -> 1 -- 2 2

in this Pull Request

result = spade(filename='zaki.txt', support=0.3)
print(result)
1 -- 4 4 
2 -- 4 4 
4 -- 2 2 
6 -- 4 4 
1 6 -- 3 3 
2 6 -- 4 4 
4 -> 6 -- 2 2 
4 -> 2 6 -- 2 2 
1 2 6 -- 3 3 
1 2 -- 3 3 
4 -> 2 -- 2 2 
2 -> 1 -- 2 2 
4 -> 1 -- 2 2 
6 -> 1 -- 2 2 
4 -> 6 -> 1 -- 2 2 
2 6 -> 1 -- 2 2 
4 -> 2 6 -> 1 -- 2 2 
4 -> 2 -> 1 -- 2 2

I apologize if I've interpreted that incorrectly.

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

Successfully merging this pull request may close these issues.

2 participants