All of these codes are for preprocessing the dataset and we use R to get the association rule. However, it is majorly for Crime dataset and Unemployment dataset
- Place the dataset on datasets_csv folder
- Requirement:
- Python 3.6 or above
- pip installation
- Pandas (pip install pandas)
- Numpy (pip install numpy)
- Every R code will go to R folder.
- Terminal: The environment should be able to detect the R compiler
- Go to the R folder
Rscript --vanilla association_rule_mining.R
- Terminal: The environment should be able to detect the R compiler
- The R code relies on csv dataset so. You can edit the filepath on line 5 of the code.