Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Data Mining Association rule mining function is to determine an association between products/items. Apriori algorithm were one of the more popular and probably the most
Data Mining Association rule mining function is to determine an association between products/items. Apriori algorithm were one of the more popular and probably the most efficient algorithms. Table 1 shows the ten transactions of groceries store dataset. This dataset contains the top four groceries and 20 transaction records. Table 1 Form the code for the market basket analysis from the case study above using the Apriori algorithm. The required steps are as follows: Step 1: Import related libraries and load the Grocerystoredataset. csv dataset. Step 2: Check the info for the dataset recorded. Step 3: Check the shape of the dataset. Step 4: Convert Pandas DataFrame into a list of lists. Step 5: Transform the list with one-hot encoding. Explain the function Step 6: Build the Apriori model for the dataset. Set the minimum support value at 0.17 and a threshold value for confidence at 0.55. Step 7: Get the support, confidence and lift values for recommended antecedents and consequents transactions. Explain the results
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