Question
A group of people were asked about the list of books that they have read in the last two years. For each person, the books
A group of people were asked about the list of books that they have read in the last two years. For each person, the books they have read are shown in one line of the file books.csv. The books are shown symbolically B1, B2, B3, ...
Apply the Apriori algorithm to find the frequent itemsets of books with support at least 0.15.
For each size s = 1, s=2, s=3, ... find the top-3 frequent itemsets (such that the support is not smaller than 0.15)
Note: the given file is provided as an example, but your solution will be tested with other versions of the books.csv file too.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started