Professional Documents
Culture Documents
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.