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

build confusion matrix from frequent_patterns #1054

Open
wdduncan opened this issue Jun 29, 2023 · 0 comments
Open

build confusion matrix from frequent_patterns #1054

wdduncan opened this issue Jun 29, 2023 · 0 comments
Labels

Comments

@wdduncan
Copy link

When calculating the frequent itemsets and rules, is possible to get the raw numbers needed to build a confusion matrix?

E.g.: After executing this:

frequent_itemsets = apriori(data, min_support=0.2, use_colnames=True)
rules = association_rules(frequent_itemsets, metric="support", min_threshold=0.2)

Is a way to build a confusion matrix like this?:

C not_C
A A+C A+not_C
not_A not_A+C not_A+not_C
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant