Skip to content

Instantly share code, notes, and snippets.

@FranciscusRenatus
Created July 9, 2017 09:13
Show Gist options
  • Save FranciscusRenatus/3abc27e1fe2cc92c3f881f41e068c192 to your computer and use it in GitHub Desktop.
Save FranciscusRenatus/3abc27e1fe2cc92c3f881f41e068c192 to your computer and use it in GitHub Desktop.
# Training Apriori on the dataset
from apyori import apriori
rules = apriori(transactions, min_support = 0.003, min_confidence = 0.2, min_lift = 3, min_length = 2)
# Visualising the results
results = list(rules)
myResults = [list(x) for x in results]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment