Quizzes on SVM (Support Vector Machines) and kernel tricks.

What is the objective of a Support Vector Machine?
A) To find a hyperplane that separates data points into different classes with maximum margin.
B) To minimize the error rate of classification.
C) To find the nearest neighbors of a data point.
D) To perform clustering of data points.

Show Answer

Answer: A) To find a hyperplane that separates data points into different classes with maximum margin.
Explanation: SVM aims to find the optimal hyperplane that best separates the data points of different classes by maximizing the margin between them.

In an SVM, what are support vectors?
A) The data points farthest from the hyperplane.
B) The data points that are closest to the hyperplane.
C) The data points that are used to calculate the margin.
D) Both B and C.

Show Answer

Answer: D) Both B and C.
Explanation: Support vectors are the data points that are closest to the hyperplane and are used to define the margin. They lie on the boundary of the margin.

What is the margin in an SVM?
A) The distance between the two support vectors.
B) The distance between a data point and the hyperplane.
C) The distance between the hyperplane and the nearest support vector.
D) The distance between the hyperplane and the farthest support vector.

Show Answer

Answer: C) The distance between the hyperplane and the nearest support vector.
Explanation: The margin is the distance between the hyperplane and the closest support vectors. The objective of SVM is to maximize this margin.

What is the purpose of the regularization parameter (C) in SVM?
A) To control the size of the margin.
B) To control the trade-off between maximizing the margin and minimizing classification error.
C) To control the kernel type used.
D) To control the number of support vectors.

Show Answer

Answer: B) To control the trade-off between maximizing the margin and minimizing classification error.
Explanation: The parameter C controls the trade-off between a smooth decision boundary (large margin) and classifying training points correctly. A large C aims to minimize classification error, while a smaller C aims to maximize the margin.

In SVM, what does the kernel function ( K(x, x’) ) compute?
A) The distance between ( x ) and ( x’ ).
B) The dot product of ( x ) and ( x’ ) in the original space.
C) The dot product of ( x ) and ( x’ ) in the transformed feature space.
D) The similarity between ( x ) and ( x’ ) in the original space.

Show Answer

Answer: C) The dot product of x and x' in the transformed feature space.
Explanation: The kernel function computes the dot product of two vectors x and x' in the transformed (higher-dimensional) feature space without explicitly performing the transformation.

In the context of SVMs, what is a slack variable?
A) A variable that allows some data points to be misclassified.
B) A variable that defines the margin.
C) A variable that determines the type of kernel used.
D) A variable that adjusts the hyperplane position.

Show Answer

Answer: A) A variable that allows some data points to be misclassified.
Explanation: Slack variables are introduced to allow some data points to be on the wrong side of the margin or even the hyperplane, enabling a soft margin approach for non-linearly separable data.


Discover more from Science Comics

Subscribe to get the latest posts sent to your email.

Leave a Reply

error: Content is protected !!