Challenge

Supervised Learning - Classification Week 8 Challenge

Answer 1:

Code is provided in Week-8.ipynb file

Answer 2 :

Advantages of KNN :

  1. Simple and scalable.
  2. Calculation time is less.
  3. Effective for larger dataset.
  4. It has relatively high accuracy.

Disadvantages of KNN :

  1. Requires more memory for computation.
  2. It's a lazy learning algorithm as it doesn't learn from training dataset instead, it simply memorises it.
  3. Determining the value of K(number of nearest neighbours) is quite expensive,
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.