Recent questions tagged knn

4 4 votes
1 answers 1 answer
7.6k
7.6k views
Suppose, you have given the following dataset where x and y are the 2 features and color Red or Blue is the target variable.a) A new data point $x=1$ and $y=1$ is given. ...
1 1 vote
1 1 answer
3.2k
3.2k views
I am not able to figure out how the calculation of the $m$ nearest points will be in a single dimensional array using kNN. Can anyone offer a clue or example?Thank you
1 1 vote
3 3 answers
3.7k
3.7k views
The KNN function in the sklearn library (when coded properly), outputs the points closest to p based on the value of k, and others.The point(s) would include itself when ...
3 3 votes
2 2 answers
13.3k
13.3k views
I am wondering what happens as K increases in the KNN algorithm. It seems that as K increases the "p" (new point) tends to move closer to the middle of the decision bound...
3 3 votes
0 0 answers
532
532 views
3 3 votes
1 1 answer
1.1k
1.1k views
I have read online articles involving KNN and its emphasis on normalization. I would like to know if all KNN functions in Python need to involve normalization? I do know ...
To see more, click for the full list of questions or popular tags.