Upgrade to Pro — share decks privately, control downloads, hide ads and more …

K-Nearest Neighbours

K-Nearest Neighbours

Charmi Chokshi

April 09, 2020
Tweet

More Decks by Charmi Chokshi

Other Decks in Technology

Transcript

  1. Welcome to the
    Covid Coding Program

    View Slide

  2. Let’s Start Basics of
    Machine Learning!
    I’m, Charmi Chokshi
    An ML Engineer at Shipmnts.com
    and a passionate Tech-speaker. A
    Critical Thinker and your mentor of
    the day!
    Let’s connect:
    @CharmiChokshi

    View Slide

  3. What you did today?

    View Slide

  4. I developed a new hobby!!
    reading personalities!!

    View Slide

  5. Tell me about your friends...

    View Slide

  6. View Slide

  7. View Slide

  8. View Slide

  9. View Slide

  10. View Slide

  11. View Slide

  12. View Slide

  13. View Slide

  14. View Slide

  15. View Slide

  16. View Slide

  17. View Slide

  18. View Slide

  19. View Slide

  20. What is the value of k here?

    View Slide

  21. And it’s a tieeeeee?

    View Slide

  22. Following are the 3 approaches
    to resolve this tie,
    1. Keep on decreasing k by 1 till it
    resolves a tie
    2. Feature weighting
    3. Cross Validation

    View Slide

  23. View Slide

  24. View Slide

  25. Let’s Code it!!
    https://machinelearningmastery.com/tutorial-to-implement-k-nearest-neighbors-in-pyt
    hon-from-scratch/

    View Slide

  26. Thank You!

    View Slide