Skip to content

Implementation of K-Nearest Neighbors (KNN) in Python

Notifications You must be signed in to change notification settings

Nawrin14/K-Nearest-Neighbors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

K-Nearest-Neighbors

Tasks

  • 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.

About

Implementation of K-Nearest Neighbors (KNN) in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published