Question: Part 2 : Support Vector Machine ( SVM ) - Linear and w / RBF Kernel. 5 pts . each task Please complete the following
Part : Support Vector Machine SVM Linear and w RBF Kernel. pts each task
Please complete the following tasks to explore Linear Support Vector Machines LSVM and Support Vector Machines SVM with an RBF kernel. You can use Python and libraries such as scikitlearn to implement and demonstrate your work.
Task : Linear Support Vector Machine LSVM
Load the Iris dataset.
Split the data into training and testing sets.
Implement a Linear Support Vector Machine SVM classifier using scikitlearn.
Train the LSVM model on the training data.
Evaluate the LSVM model's performance on the test data and report accuracy.
Task : Support Vector Machine SVM with RBF Kernel
Load the Iris dataset.
Split the data into training and testing sets.
Implement a Support Vector Machine SVM classifier with an RBF kernel using scikitlearn.
Train the SVM model with the RBF kernel on the training data.
Evaluate the SVM model's performaice on the test data and report accuracy.
Task : Hyperparameter Tuning for SVM with RBF Kernel
Perform hyperparameter tuning for the SVM with an RBF kernel. Search for optimal values of hyperparameters such as and using Random Search.
Report the best hyperparameters for the SVM with the RBF kernel.
Train a new SVM model with the best hyperparameters and evaluate its performance on the test data.
Task : Metrics Comparison
Calculate and compare relevant evaluation metrics eg accuracy, precision, recall, Fscore for the LSVM from Task and the SVM with an RBF kernel from Task
Not graded: Discuss the differences in performance and characteristics between these models.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
