Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created November 16, 2020 07:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/7b03d10c028801c922ee6a74dd7759f1 to your computer and use it in GitHub Desktop.
Save amankharwal/7b03d10c028801c922ee6a74dd7759f1 to your computer and use it in GitHub Desktop.
for item in association_results:
pair = item[0]
items = [x for x in pair]
print("Rule : ", items[0], " -> " + items[1])
print("Support : ", str(item[1]))
print("Confidence : ",str(item[2][0][2]))
print("Lift : ", str(item[2][0][3]))
print("=============================")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment