Search code examples
python-2.7associationsdata-miningdata-analysisapriori

Not able to generate Rules list by using Apriori Algorithm


I want to see the Association Rules within my dataset which contributes to each Gene Type but I am facing trouble please check the output in the images attached. I want to know what am I doing wrong any suggestion will be highly appreciated.

This is the command I am using : from apyori import apriori

rules = list(apriori(genes))

enter image description here

enter image description here


Solution

  • If you don't like the default output of the str function ofnthe frozenset class, then you need to implement your own serialization to text.

    It's straightforward.