Machine Learning Algorithm Quizzes

SVM

Question 1

What is the primary objective of a Support Vector Machine (SVM) algorithm in a classification task?

Question 2

The data points that lie on the margin and are most critical in defining the hyperplane are known as _____.

Your answer here.

Question 3

Which line of code correctly imports the Support Vector Machine model for a classification task from scikit-learn?

Question 4

Why is feature scaling (e.g., using StandardScaler) a crucial preprocessing step for SVMs?

Question 5

Which of the following are key hyperparameters for scikit-learn's SVC that you would commonly tune?

Question 6

The technique that allows SVMs to solve non-linear problems by implicitly mapping inputs into high-dimensional feature spaces is called the __.

Your answer here.

Question 7

In the context of the SVM hyperparameter C, what is the effect of choosing a very SMALL value for C?

Question 8

If you want to use an SVM for a regression problem (predicting a continuous value), you should import and use the __________ class from sklearn.svm.

Your answer here.

Question 9

Which kernel parameter settings in SVC are used to handle non-linearly separable data?

End of Quiz

Your final score is: 0 / 0

List of Questions

Question 1: What is the primary objective of a Support Vector Machine (SVM) algorithm in a classification task?

Answers: To find a hyperplane that maximizes the margin between the different classes..

Question 2: Which line of code correctly imports the Support Vector Machine model for a classification task from scikit-learn?

Answers: from sklearn.svm import SVC.

Question 3: Why is feature scaling (e.g., using `StandardScaler`) a crucial preprocessing step for SVMs?

Answers: The SVM algorithm is sensitive to feature scales, as it is based on calculating distances between data points..

Question 4: Which of the following are key hyperparameters for scikit-learn's `SVC` that you would commonly tune?

Answers: C, kernel, gamma.

Question 5: In the context of the SVM hyperparameter `C`, what is the effect of choosing a very SMALL value for `C`?

Answers: It leads to a wider margin and high tolerance for misclassification (stronger regularization)..

Question 6: Which `kernel` parameter settings in `SVC` are used to handle non-linearly separable data?

Answers: poly, rbf, sigmoid.