SVM Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Describe a way to extend the capabilities of a linear model which works which has as decision boundary limited capacity since it produces only lines or hyperplanes

A

Just add more features meaning adding polynomials of the features or interactions between them

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

In numpy how to add a new feature aka column to an existing array

A

Simply use the method np.hstack(X,array to add)

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

What the following method actually does?

plt.figure()

A

It creates a figure object, In this object we can add multiple axes, do other operations as resizing etc.

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

What is a mask at numpy array?

A

Lets say we want to keep all the elements os an array that are bigger than 0.
For that reason what we are going to do is the following:
mask=y==0
The mask is a table tat takes values which are true or false.
Applying this mask to the original array, give as a result to keep only the values that are zero.
mask.

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

When we have more than two features it is quite difficult to map all the interactions among them.For that reason, which are the method for the svms to pick the appropriate feature in higher dimensions?

A

a) Polynomial kernel which computes all possible polynomials upon a specific power
b) Radial basis function

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

What is support vectors and why they are important?

A

Support vectors are the points that lie on the boundary between two classes. These points are important since they determine the boundary line between the classes.

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

How a prediction is made at SVM?

A

It is done by measuring the distance between the points and the support vectors and the importance of the supporting vectors

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

Which are the main parameters of SVM?

A

a) gamma
b) feature selection type (Gaussian kernel)
c) the C parameter

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