0
0
ML Pythonprogramming~5 mins

Support Vector Machine (SVM) in ML Python - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the main goal of a Support Vector Machine (SVM)?
The main goal of an SVM is to find the best boundary (called a hyperplane) that separates different groups (classes) in the data with the largest possible margin.
Click to reveal answer
beginner
What is a 'margin' in the context of SVM?
The margin is the distance between the hyperplane and the closest data points from each class. SVM tries to maximize this margin to improve the model's ability to generalize.
Click to reveal answer
beginner
What are 'support vectors' in SVM?
Support vectors are the data points closest to the hyperplane. They are critical because they define the position and orientation of the hyperplane.
Click to reveal answer
intermediate
How does SVM handle data that is not linearly separable?
SVM uses a technique called the 'kernel trick' to transform data into a higher dimension where it can be separated by a hyperplane, even if it is not separable in the original space.
Click to reveal answer
intermediate
What is the role of the 'C' parameter in SVM?
The 'C' parameter controls the trade-off between having a wide margin and correctly classifying training points. A small C allows more misclassifications but a wider margin, while a large C tries to classify all points correctly but may have a smaller margin.
Click to reveal answer
What does SVM try to maximize when finding the best hyperplane?
AThe training data size
BThe number of support vectors
CThe number of features
DThe margin between classes
Which points influence the position of the SVM hyperplane?
ARandom points
BAll data points
COnly the support vectors
DPoints farthest from the hyperplane
What technique does SVM use to handle non-linear data?
AKernel trick
BGradient descent
CDecision trees
DRandom forests
What happens if the 'C' parameter in SVM is set very high?
AThe model allows more misclassifications
BThe model tries to classify all training points correctly
CThe margin becomes wider
DThe model ignores support vectors
Which of the following is NOT true about support vectors?
AThey are always misclassified points
BThey define the margin width
CThey are the closest points to the hyperplane
DThey influence the hyperplane position
Explain in your own words how SVM finds the best boundary to separate two groups.
Describe how the kernel trick helps SVM deal with data that is not linearly separable.