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

The transaction order is ignored #3

Open
SunilAgrawal opened this issue Jun 3, 2016 · 1 comment
Open

The transaction order is ignored #3

SunilAgrawal opened this issue Jun 3, 2016 · 1 comment

Comments

@SunilAgrawal
Copy link

If my transactions of the form are :

[
['def', 'abc', 'xyz'],
['def', 'xyz', 'abc']
]

It shows there's a sequence of the form

    {
        "itemSet": [
            "abc",
            "def",
            "xyz"
        ],
        "support": 1
    }

Doesn't feel right. Shouldn't the order matter? Even if that's not how the algo is defined, can I get that behavior by modifying the code?

@tuxdna
Copy link

tuxdna commented Oct 22, 2016

AFAIK, in Apriori algorithm, the order doesn't matter. So the behavior is correct. It represents a basket of items, and the order in which they were put in the basket is irrelevant.

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

2 participants