Question: ### Part 3 : Nonlinear SVM , Parameter Tuning, Accuracy, and Cross - Validation * * * Any support vector machine classifier will have at

### Part 3: Nonlinear SVM, Parameter Tuning, Accuracy, and Cross-Validation
***
Any support vector machine classifier will have at least one parameter that needs to be tuned based on the training data. The guaranteed parameter is the $C$ associated with the slack variables in the primal objective function, i.e.
$$
\min_{{\bf w}, b,{\bf \xi}}\frac{1}{2}\|{\bf w}\|^2+ C \sum_{i=1}^m \xi_i
$$
If you use a kernel fancier than the linear kernel then you will likely have other parameters as well. For instance in the polynomial kernel $K({\bf x},{\bf z})=({\bf x}^T{\bf z}+ c)^d$ you have to select the shift $c$ and the polynomial degree $d$. Similarly the rbf kernel
$$
K({\bf x},{\bf z})=\exp\left[-\gamma\|{\bf x}-{\bf z}\|^2\right]
$$
has one tuning parameter, namely $\gamma$, which controls how fast the similarity measure drops off with distance between ${\bf x}$ and ${\bf z}$.
For our examples we'll consider the rbf kernel, which gives us two parameters to tune, namely $C$ and $\gamma$.
Consider the following two dimensional data

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!