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 full-size 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 full-size slide

  3. What you did today?

    View full-size slide

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

    View full-size slide

  5. Tell me about your friends...

    View full-size slide

  6. What is the value of k here?

    View full-size slide

  7. And it’s a tieeeeee?

    View full-size slide

  8. 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 full-size slide

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

    View full-size slide