Challenge

Supervised Learning - Classification Week 8 Challenge

2......What are the pros and cons of knn

-----------------------------------------------------------------

K- Nearest Neighbors or also known as K-NN belong to the family of supervised machine learning algorithms which means we use labeled (Target Variable) dataset to predict the class of new data point. The K-NN algorithm is a robust classifier which is often used as a benchmark for more complex classifiers such as Artificial Neural Network (ANN) or Support vector machine (SVM).

Advantages:-

  1. No Training Period- KNN modeling does not include training period as the data itself is a model which will be the reference for future prediction and because of this it is very time efficient in term of improvising for a random modeling on the available data.
  2. Easy Implementation- KNN is very easy to implement as the only thing to be calculated is the distance between different points on the basis of data of different features and this distance can easily be calculated using distance formula such as- Euclidian or Manhattan
  3. As there is no training period thus new data can be added at any time since it wont affect the model.

Disadvantages:-

  1. Does not work well with large dataset as calculating distances between each data instance would be very costly.
  2. Does not work well with high dimensionality as this will complicate the distance calculating process to calculate distance for each dimension.
  3. Sensitive to noisy and missing data
  4. Feature Scaling- Data in all the dimension should be scaled (normalized and standardized) properly .
Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.