Skip to content

set_sup#3

Open
nainM wants to merge 1 commit intofzyukio:masterfrom
nainM:master
Open

set_sup#3
nainM wants to merge 1 commit intofzyukio:masterfrom
nainM:master

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