Problem Statement:
Download Market Basket Optimization dataset from below link.
Data Set: https://www.kaggle.com/hemanthkumar05/market-basket-optimization
This dataset comprises the list of transactions of a retail company over the period of one week. It contains a total of 7501 transaction records where each record consists ofthe list of items sold in one transaction. Using this record of transactions and items in each transaction, find the association rules between items.
There is no header in the dataset and the first row contains the first transaction, so mentioned header = None here while loading dataset.
Follow following steps :
A Data Preprocessing
B Generate the list of transactions from the dataset
C Train Apriori algorithm on dataset
D Visualize the list of rules
Generated rules depend on the values of hyperparameters. By increasing the minimum
confidence value and find the rules accordingly