-
Take input from “train.txt” and plot the points with different colored markers according to the assigned class label.
-
Implement KNN algorithm. The value of K will be taken from user. Classify the test points from “test.txt” with different colored markers according to the predicted class label.
-
Print the top K distances along with their class labels and the predicted class to “prediction.txt” for each of the test data.
-
Notifications
You must be signed in to change notification settings - Fork 0
Nawrin14/K-Nearest-Neighbors
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Implementation of K-Nearest Neighbors (KNN) in Python
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published