You are on page 1of 4

CSE-4020 Machine Learning Lab

Topic: KNN (K-Nearest Neighbours) Algorithm

Name: Puneet Purohit Slot: L54+L53


Reg No: 20BCE0191 Date: 21/10/21

Aim: To implement the KNN model using the scikit learn library, find the classification for new
instance and calculating the accuracy of the algorithm.
Code:
Implementation of KNN model using scikit
Conclusion: The KNN model is successfully implemented using the KNN classifier from the scikit
learn library, for K=5 our model gives approximately 70% accuracy.

You might also like