Data Files:
- wine.csv: used in final.py
- wine_oversampled.csv: used in regression.r
- wine_oversampled_R.csv: used in regression2.r
Steps to run R files:
- Put wine_oversampled.csv and wine_oversampled_R.csv to the directory
- Run the model regression.r (Lasso and Ridge Regression) and regression2.r (Stepwise Interaction Term Removal) respectively
Steps to run Python files:
- Install libraries used in final.py
- Alternative: Use Jupyter Notebook
- Open final.py and change line 27: filepath to your directory of wine.csv
- Run final.py (Regression, Decision Tree Regression, Correlation Matrix, SVM, SVM with PCA, KNN with PCA, Decision Tree with PCA)
Report file - Wijaya_Mario_ProjectReport.pdf: Contains the detailed report of results and experiments