K Nearest Neighbor Terms Flashcards

1
Q

It is the most naive kind of supervised machine learning

A

K Nearest Neighbor Algorithm (KNN)

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

What does KNN predict?

A

based on similarity to its closest neighbors

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

Why KNN does not need much training?

A

KNN simply memorizes the entire dataset

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

How does KNN predict?

A

Find the most similar object and copy its label

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

What distance or measurement does KNN use when making a prediction?

A

Euclidean or Manhattan distance

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

What is the hyperparameter K?

A

option that you manually decide on when making a prediction

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

In the hyperparameter k, what does K represent?

A

number of nearest neighbors to consider before making a prediction

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

If we use knn on classification types, how does the algorithm decides on the final prediction?

A

decides through majority (mode)

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

If we use knn on regression types, how does the algorithm decides on the final prediction?

A

decides through average (median)

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

when we use KNN, what factors can we consider on Features and Labels?

A

Features can be either discrete or continuous.

Labels can be classification or regression.

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

what are the advantages of KNN?

A

Fast training time, and easy to implement

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

what are the disadvantages of KNN?

A

model is large, prediction is slow if the dataset is too big, and treats all features equally even if they are relevant or not.

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