K-Nearest Neighbours and Support Vector Machine Flashcards

(17 cards)

1
Q

What is KNN?

A

A supervised learning algorithm frequently used for classification problems.

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

How is a new data point classified?

A

A new data points class will depend on its k-nearest neighbours

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

What are weaknesses of KNN?

A

It is susceptible to outliers and class imbalances.

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

What are two methods for determining k?

A

Method one starts with k = 1 and calculates performance metrics until an optimal K is found. Method two sets the value of k to the square root of the number of records in the training dataset.

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

What is weighted KNN?

A

A variant of KNN where the impact of nearer neighbours is more than neighbours that are further away.

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

What type of learning does KNN use?

A

Instance based learning

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

What are the best conditions for KNN?

A

Datasets of a limited size, with limited dimensionality, and easily scalable data.

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

What does SVM stand for?

A

Support Vector Machine

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

What does KNN stand for?

A

K-Nearest Neighbours

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

What is an SVM?

A

A supervised machine learning algorithm used for classification, regression, and clustering problems.

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

What is the aim of an SVM?

A

To find a line that separates data points by a margin

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

What is the margin in an SVM?

A

The margin is the distance between the closest pair of data points belonging to opposite classes

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

How are outliers handled?

A

Outliers are handled by allowing for misclassification so that the threshold becomes less sensitive to outliers.

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

What is a soft margin?

A

The distance between the observation and the threshold in a scenario where misclassification is allowed

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

How is non-linearly separable data handled?

A

A transformation is applied to the data to map it from its original feature space to a higher-dimensional feature space that allows them to be linearly separated.

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

What is the kernel trick?

A

A technique used by the SVM to calculate high-dimensional relationships without actually transforming the data. This reduces the computational cost.