Question
(Machine Learning) Use SVM from sklearn to classify non-linearly sperable datasets. Refer to the example in sklearn http://scikit-learn.org/stable/auto_examples/svm/plot_iris.html, you can use this code or part
(Machine Learning) Use SVM from sklearn to classify non-linearly sperable datasets. Refer to the example in sklearn http://scikit-learn.org/stable/auto_examples/svm/plot_iris.html, you can use this code or part of it in your solutions. Load (using load_breast_cancer) datasets from sklearn (datasets.load_breast_cancer()):
a. select and evalute the "best kernal SVM" and the "worse kernel SVM" model could fit this dataset (you can empirically select the hyperparameters values), justify your answer.
b. report the cross validation accuracy for the "best kernel SVM" and the "worse kernel SVM" classifier.
c. Using random search, what is the optimimum hyperparameter values for the "optimum model" ?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started