05 Support Vector Machines Flashcards

1
Q

What are SMV’s used for?

A

Classification, Regression, Outlier Detection

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What size of dataset are SVM best suited for?

A

it is small & medium data sets

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Can SVM be used for both linear and non-linear problems

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How does SVM classify?

A

In any classification we need the model to separate classes but we also want the model to have a distance from decision boundary as new instance can be added in the boundary which may lead to misclassification and SVM will maintain margin from decision boundary as well.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Do SVM need scaling?

A

Yes, we need to use standard scaling.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is hard margin classification?

A

when we are strict about boundaries being wide and instances being on the right side of the boundary.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what is soft margin classification?

A

the street is kept as large as possible and margin violations are limited.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

which hyperparameter is responsible to control the margin violation?

A

C - if the value is less the width of the street is wide maximizing margin violation and more value of c indicates that the width of street is less hence minimizing the margin violation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

how to deal with overfitting in SVM model?

A

we need to reduce the value of C.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Does SVM model give probability?

A

No SVM does not give probability.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

how can we solve polynomial equation using SVM?

A
  1. we can add a new feature according to the degree.
  2. if there are m instances, we can add m features to the dataset.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

what to do when we have a small dataset but the polynomial equation with high degree?

A

we can use SVM with kernel hyperparameter set to - “poly”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

how can we add m features to the datasets if there are m instances in the dataset?

A

this can be done in svm using rbf (Radial Basis Function) kernel.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

what are the hyperparameters f RBF kernel?

A

it has gamma and c parameter. both are used for the smoothness of the decision boundary.
when there is overfitting - we need to decrease the value of gamma and when there is underfitting we need to increase the value of gamma.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

how is svc different from svr?

A

in svr we the width of the margin does not impact the prediction of the model but violation of the margin should not happen.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

what is the parameter in SVR?

A

it is epsilon. it controls the width of the margin.
for polynomial equation we also use C.