...

/

SVM Implementation Steps: 8 and 9

SVM Implementation Steps: 8 and 9

This lesson will go over steps 8-9 of implementing support vector machines.

We'll cover the following...

8) Grid search

You can improve the accuracy of our model using a technique called grid search to help us find the optimal hyperparameters for this algorithm. While many hyperparameters belong to SVCSupport Vector Classifier, we will focus on C and gamma, which generally have the biggest impact on prediction accuracy when using this algorithm.

The hyperparameter C controls the cost of misclassification on the training data. In other words, C regulates the extent to which misclassified cases (placed on the wrong side of the margin) are ignored.

This flexibility in the model is referred to as a “soft margin,” and ignoring ...