Labs Flashcards

1
Q

Explain briefly K nearest neighbours

A

It is based on the idea that models that are close together in feature space belong to the same class

the fitting is mostly based on the idea of indexing all the sample
while the prediction computes the euclidean distance to the other points and then finds simply the K nearest neighbourhood

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

explain Random forest

A

As the decision trees have a tendency towards overfitting, we try to fit N decision tree and then we assign the majority class during prediction

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