Gauging how Support Vector Machine Algorithm behaves with Hyperparameter Tuning
Gauging how Support Vector Machine Algorithm behaves with Hyperparameter Tuning
The “juice.csv” data contains purchase information for Citrus Hill or Minute Maid orange juice. A description of the variables follows.
STORE: Which of 5 possible stores the sale occured at
More crucial attribute than the prices of both these brands is the price difference between both these brands.
We already have the Store ID in the dataset so STORE and Store7 need not be included in the dataset.
List Price difference is a redundant attribute as we already have the Sales Price Difference in the data.
After comparing the Train and Test Scores for all the models:
Basic Models
SVM with Linear Kernel is the best in case of Basic Models with the least Error scores for both Train and Test datasets.
Tuned Models
For both RBF and Linear Kernels, the cost parameter for the best model is 0.31 and the scores are almost equal.
For Polynomial, the cost parameter is 9.61 but the model isn’t as good.
Taking the Accuracy rate and Error Rate into Consideration, both tuned models - SVM with Kernel RBF and Kernel Linear are good but RBF is slighlty better as there are lower chances of Overfitting.
Removing such redundant variables in the dataset and keeping more relevant attributes will help us avoid the overfitting of the model.