KNN Algorithm Explained with Simple Example Machine Leaning

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ม.ค. 2025

ความคิดเห็น • 464

  • @furqansiddiqui8129
    @furqansiddiqui8129 2 ปีที่แล้ว +304

    NO ONE..NO ONE explains topics more clearly than an Indian youtuber with pen and paper.Amazing video😄

    • @PnutJpg
      @PnutJpg 2 ปีที่แล้ว +1

      hahahahahahaha

    • @nikunjjain1359
      @nikunjjain1359 ปีที่แล้ว

      Can't be more true 😂

    • @kozaTG
      @kozaTG ปีที่แล้ว

      what he said

  • @lerichroi4129
    @lerichroi4129 2 ปีที่แล้ว +10

    I do not know why university lectures a so good at making these concepts very complicated. This video truly helped me. Thank you!

  • @Asholuck
    @Asholuck 2 ปีที่แล้ว +11

    I literally understood this thing just by watching this video ONCE. I hope you realized how good is your ability to teach. Who ever have chance to be your student is blessed.

    • @yogeshmurumkar
      @yogeshmurumkar  2 ปีที่แล้ว +6

      Thank you..I am glad it helped you..I will be uploading the videos for this algorithm and other algorithms with proper and simple datasets..

  • @legiegrieve99
    @legiegrieve99 ปีที่แล้ว +2

    Most people find an easy way to explain KNN, but that you so much taking the effort and make it so simple. 🤩

  • @dipto624
    @dipto624 3 ปีที่แล้ว +15

    Best use of 13min. Videos like this are just gem! 💎💎💎 I wish university faculties could teach you like this.

  • @MR-cs6vo
    @MR-cs6vo 4 ปีที่แล้ว +17

    I love the way you explain math using real world scenarios. Its makes us easy to understand and grasp the concept very easily. Thank you sir your are a good teacher even 5 years old kid will understand this algorithm very easily by the way you explained.

  • @mithunchandrasaha403
    @mithunchandrasaha403 ปีที่แล้ว +2

    Very Nice Explanation,Sir.Needs More This Type Of Tutorial From You.

  • @manishakale3676
    @manishakale3676 5 ปีที่แล้ว +28

    I have just finished watching it. Fully understood. Sir right from the word go I have watched all your videos and all of them are simple and easy to comprehend. Keep posting... Waiting for the next...

  • @none-vw2cu
    @none-vw2cu 3 ปีที่แล้ว +2

    Wonderfully explained no other resource required again to understand KNN

  • @mehrim5309
    @mehrim5309 2 ปีที่แล้ว +1

    I really appretiate the indian utubers who guides us with full force...because of this. I usually try to search the indian guiders for any topic relate to study.

  • @rockyetchison3380
    @rockyetchison3380 2 ปีที่แล้ว +3

    Sir, As an outsider I became real fond of Indian YT,
    How they present & instruct the material! 😌😍

  • @techienomadiso8970
    @techienomadiso8970 ปีที่แล้ว

    Ooh my God! I just understood this now because of you after so many trials to read....
    May God bless you man! You Indians are a blessing to this Universe 🎉

  • @timmytesla9655
    @timmytesla9655 6 หลายเดือนก่อน

    Best explanation of KNN I have seen on TH-cam. Thank you!

  • @dkrecord6265
    @dkrecord6265 4 ปีที่แล้ว +6

    very well done....I looked for dozens of videos on this topic but yours is the ultimate ...awesome ...pl upload more videos..thank you!!!!!

  • @radhaingle4664
    @radhaingle4664 5 ปีที่แล้ว +36

    Really very much needed and it helped me a lot... Clear and crisp

  • @Lina-cy9ln
    @Lina-cy9ln 3 ปีที่แล้ว +1

    Thank you so much dada. I`m taking preparation for the final exam and it`s too much helpful for me.

  • @pandikumar3733
    @pandikumar3733 4 หลายเดือนก่อน

    Dear Sir, It's very helpful. Kindly make more videos in same format. Please. It opens our brain in simple way

  • @AksGu2
    @AksGu2 4 ปีที่แล้ว +3

    Really nice explanation, I saw this video after seeing few other videos,
    Your video explained full process in very clean way.
    Thank you so much

  • @satya1067
    @satya1067 3 ปีที่แล้ว +2

    Watching ....30 Min before Semester Exam.......Thanks bro🤙🤙🤙

  • @narendrakishore8526
    @narendrakishore8526 5 ปีที่แล้ว +5

    Your videos give very neat description of machine learning algorithms. Please make more videos

  • @michaelantoni8323
    @michaelantoni8323 2 ปีที่แล้ว

    Easy to understand, this is by best video I've watch that explained it clearly with examples.

  • @sapnaarora9546
    @sapnaarora9546 4 ปีที่แล้ว +3

    Yogesh Ji, I have seen your vlog for the first time and really impressed with the ease of understanding you are inculcating in the explanation. Thanks and keep sharing such useful vlogs.

    • @ompatil2120
      @ompatil2120 4 ปีที่แล้ว +3

      I am glad if it helped you.....

  • @sachinahankari
    @sachinahankari 5 ปีที่แล้ว +4

    Clearly explained with simple example.. within short span of time I cleared the concept.. but you have to include python programming for this algo also

  • @82141a
    @82141a 2 ปีที่แล้ว +1

    thank you very much for the video! helped me pass my exam on big data 😎

  • @codeinkannada7183
    @codeinkannada7183 3 ปีที่แล้ว

    Hey bro.... I searched so many blogs and information about knn ...but not even bit of understand ....your explanation is really soo cool and awesome

  • @premarajan3539
    @premarajan3539 ปีที่แล้ว

    One such satisfied conceptual explanation which i come across, Thank you so much

  • @raqibul_stat
    @raqibul_stat 2 ปีที่แล้ว +1

    Very Simple but best video to understand...😍😍Thanks

  • @kunjjani1683
    @kunjjani1683 ปีที่แล้ว +24

    Kudos to the explanation. Your efforts are appreciated.
    But there are some correction to be made.
    1) The Euclidean distance of Zaira is 29 and not 9
    2) The Euclidean distance of Smith and Michael with respect to Angelina are equal
    3) The 3 nearest Euclidean distance with respect to Angelina are of
    Names = (Sara , Smith , Michael)
    Euclidean Distances = (11 , 10.049 , 10.049)
    Sport Class = (Cricket , Cricket , Football)
    Anyways decision will remain the same (i.e - Prediction will be that Angelina will belong to Cricket Class)
    But what if the sport class were (Cricket , Neither , Football).
    As we have 3 category in the sport class so it is not a binary classification what will be the conclusion in the above mentioned case?

    • @arshdeep011
      @arshdeep011 ปีที่แล้ว +10

      finally found the comment that i was looking for

    • @abhishek0001.
      @abhishek0001. ปีที่แล้ว +1

      How to assume the value of k?

    • @thivakarr8239
      @thivakarr8239 ปีที่แล้ว +3

      @@abhishek0001. that will be given in the question

    • @Paisakamaona
      @Paisakamaona ปีที่แล้ว +2

      if sport class were cricket,neither,football then i think we have to increase the k value

    • @puddy107
      @puddy107 ปีที่แล้ว +6

      @@abhishek0001. Can be given in the question but if that is not given there is always another way to start. Count the number of possibilities there are in class attribute you are trying to predict (in this case it's class of sport). There are 3 possible options there { neither, football, cricket } therefore you start with 3.
      Do not make k less than the number of class values, meaning in this situation you would not make k=2. One thing that can happen--If 3 is not giving you a definitive answer for which sport Angelina is most likely to play, you must raise the value of k.
      Nearest neighbors are the records with the lowest distance. For example k=3, and the 1st nearest neighbors sport = neither, 2nd nearest neighbor = cricket, 3rd nearest neighbor = football, this doesn't tell you which sport Angelina is most likely to play as there is no repeating sport. This is when you raise the value of k. With k=4 and 3 possible class of sport options 1 sport must be more common than the others.

  • @ahmadfikrifirdiansyah5971
    @ahmadfikrifirdiansyah5971 2 ปีที่แล้ว

    Thanks sir, your explanation is very very easy to understand

  • @jawaherabd8083
    @jawaherabd8083 ปีที่แล้ว

    thank u sir
    iam from Iraq and I depend on ur videos

  • @vishalshinde2326
    @vishalshinde2326 4 ปีที่แล้ว

    Your explanation is fully understandable. Cleared all points.

  • @lifeshinesofficial6962
    @lifeshinesofficial6962 5 ปีที่แล้ว +8

    खूप छान, सुरळीत आणि सोपं👌👌👌

  • @singswithsuitcase2419
    @singswithsuitcase2419 2 ปีที่แล้ว

    I should really say, thank you so much so so much. You have explained this concept very deeply and very easily. ❤❤

  • @surendraavvaru8536
    @surendraavvaru8536 3 ปีที่แล้ว

    Love you yogesh brother the way your explaining is awesome brother

  • @RGM2345
    @RGM2345 2 ปีที่แล้ว +1

    Thank you very much it helps, from Bangladesh

    • @yogeshmurumkar
      @yogeshmurumkar  2 ปีที่แล้ว +1

      Thanks..I am glad if it helped you!!

  • @sheenajohnson5024
    @sheenajohnson5024 3 ปีที่แล้ว

    Sir really explained in simple way.Thank you 👏

  • @ashawinimangate4908
    @ashawinimangate4908 5 ปีที่แล้ว +14

    Excellent....very useful

  • @i_am_priyadharshinii
    @i_am_priyadharshinii 2 ปีที่แล้ว

    Great explanation..Thanks ..last minute exam prep students like here

  • @ricardopaesdebarros8996
    @ricardopaesdebarros8996 4 ปีที่แล้ว +2

    Great video, with a very clear explanation. I understood very easily with it.

  • @lucafrancescoabatangelo3348
    @lucafrancescoabatangelo3348 4 ปีที่แล้ว +12

    Very clear. I'm not in this kind of things, but I think that it can be weighed in some ways. In this example it seems that the gender is not very important, because in the euclidean distance it doesn't really count compared to the age gap . If I want to give it more importance I can use male=0 and female=10 or male=0 and female=20.

  • @dimaXDM
    @dimaXDM 10 หลายเดือนก่อน

    Thank for video with such clear, step by step explanation!
    There is one error: The distance between ZAIRA and ANGELINA is 29, not 9. So, the 3 closest distances to ANGELINA are:
    MICHAEL (distance: 10,05) - Football
    SMITH (distance: 10,05) - Cricket
    SARA (distance: 11) - Cricket

  • @ksuhas2743
    @ksuhas2743 3 ปีที่แล้ว +26

    Sir, there is a small mistake in the distance value of zaira, it’s 29 not 9. But rest of the video is excellent. Good explanation Sir.

    • @wiseofdiscovery
      @wiseofdiscovery 2 ปีที่แล้ว +2

      Yes u r right.

    • @yogeshmurumkar
      @yogeshmurumkar  2 ปีที่แล้ว +3

      Yes that's there ..but hope you got the concept...I will try to create a video with correct values.. thanks

    • @KING-mc6pj
      @KING-mc6pj 2 ปีที่แล้ว

      @@yogeshmurumkar plz post it asap

  • @vaion257
    @vaion257 2 ปีที่แล้ว +1

    Thank you so much, finally a simple clearly video about it

  • @meenakshirao4990
    @meenakshirao4990 2 ปีที่แล้ว

    Well done Yogesh. Keep it up.

  • @Slim-bob
    @Slim-bob 2 ปีที่แล้ว +6

    Great video! Think Smith is 10.05 and from my understanding for distance based algorithms (such as kNN) it's best to standardized the data so that columns with larger ranges don't over impact results

    • @yogeshmurumkar
      @yogeshmurumkar  2 ปีที่แล้ว +2

      Yes that can be done during implementation!!

    • @rahulkotha9529
      @rahulkotha9529 ปีที่แล้ว

      Bro why same details have small variation in distance?

  • @sabiyasultana8438
    @sabiyasultana8438 2 ปีที่แล้ว

    You saved my life I have exam tomorrow !!!

  • @takeshiasahi5494
    @takeshiasahi5494 3 ปีที่แล้ว

    After my college and other ytb'rs confused me as hell ..... you showed up as an angel.

  • @shobhitsadwal756
    @shobhitsadwal756 3 ปีที่แล้ว

    this is such a simple way of teaching like really with a pen and paper , I dont get it people using useless animations and out of the context examples making videos more complex to understand . This is the best way of retaining information to the memory also makes it way more crisp to understand .

  • @mr.ashuanand10M
    @mr.ashuanand10M ปีที่แล้ว +1

    Superb
    Thank you so much 🙏💫

  • @nishasundaram9129
    @nishasundaram9129 2 ปีที่แล้ว

    This is brilliant. Thank you so much for the clear and simple explanation.

  • @mukundsrinivas8426
    @mukundsrinivas8426 4 ปีที่แล้ว

    excellent. Clearest explanation so far

  • @ludapeps2196
    @ludapeps2196 3 ปีที่แล้ว

    Explanation should be this simple.. You now have a new subscriber

  • @ashishkr.229
    @ashishkr.229 ปีที่แล้ว

    Explained flawlessly ❤

  • @darknessofdanger
    @darknessofdanger 4 ปีที่แล้ว +1

    Great video... It focussed on the math which exactly I was looking for

  • @rashmigamage7747
    @rashmigamage7747 10 หลายเดือนก่อน +1

    Sir, how to arrange in ascending order if two or more data points have the same Euclidian distances but have different classes.

  • @PandiMengri
    @PandiMengri 4 ปีที่แล้ว +7

    Well done my friend, this really helped!

  • @mustafaeren2851
    @mustafaeren2851 3 ปีที่แล้ว

    Great video, with clear explanation. Thank you sir.

  • @Gamma3
    @Gamma3 ปีที่แล้ว +1

    Thank you bro, I will suscribe

  • @rezaghasemzadeh9440
    @rezaghasemzadeh9440 ปีที่แล้ว

    That's why I love Indian people, thank you

  • @bestineouya5716
    @bestineouya5716 3 ปีที่แล้ว

    Saved our sinking grades. Thank you

  • @antareephasan
    @antareephasan 2 ปีที่แล้ว +1

    You explained very well. Thank you ❤

  • @sumeersaifi6354
    @sumeersaifi6354 3 ปีที่แล้ว +2

    you are awsome only one doubt i have as you have take example for 2 features what if there are 3 or more then 3 then how we are going to calculate it. like what would be the formula

  • @samyukthamobile8447
    @samyukthamobile8447 5 ปีที่แล้ว +21

    √(34-5)2 = 29 but u told it's near to value of 10 and gave prediction they like cricket abruptly in video. There's error

    • @pankajprajapati3972
      @pankajprajapati3972 4 ปีที่แล้ว +5

      Its 29 n he wrote 9

    • @saiakhileshveldi4580
      @saiakhileshveldi4580 4 ปีที่แล้ว +4

      Yeah ,So we Have to take values 10,10.05,11
      which is from Arun-> Cricket,Micheal -> FootBall,Sara->Cricket. Where 2 are Cricket ,1 football .Majority is Cricket,Ans is Cricket.

    • @balaji_bala0720
      @balaji_bala0720 4 ปีที่แล้ว

      @@pankajprajapati3972 yes

    • @daya9100
      @daya9100 4 ปีที่แล้ว

      Exactly i was like with age 34 how it beats sara with 16 . he should correct it.

    • @aakashyadav5765
      @aakashyadav5765 4 ปีที่แล้ว

      @@saiakhileshveldi4580 where is Arun in the example?

  • @javiersaavedra8458
    @javiersaavedra8458 4 ปีที่แล้ว

    Thanks yogesh this was very helpful for me :)

  • @texasgun9852
    @texasgun9852 2 ปีที่แล้ว

    As the video is nice and easily understandable ,but it contains some mistake in calculation so kindly check it before uploading the video here bro/sir. And it too useful . Great representation👍👍

  • @journeyviaYT
    @journeyviaYT 3 ปีที่แล้ว

    Very simple n neat explanation of distance calculation

  • @pravinbaste009
    @pravinbaste009 3 ปีที่แล้ว

    Really nice explanation...!!!
    Thanks for sharing...!!!

  • @viky-2006
    @viky-2006 4 ปีที่แล้ว +2

    Excellent!!!! you nailed it. Thanks for such a great explanation. I tried other videos as well but I believe yours was the best for the topic.

  • @swahiliicttutorials5568
    @swahiliicttutorials5568 ปีที่แล้ว

    you have explained in an Efficient way: real world example with clear sights

  • @priyanshipatsaria5721
    @priyanshipatsaria5721 4 ปีที่แล้ว +4

    7:45 very well explained

  • @PedroGrilo13
    @PedroGrilo13 4 ปีที่แล้ว

    Very well explained. Helped me a lot. Thanks

  • @surajpawar631
    @surajpawar631 2 ปีที่แล้ว

    Very beautiful way to explain sir

  • @harshithbangera7905
    @harshithbangera7905 4 ปีที่แล้ว

    Man.....ur awesome... crystal clear

  • @MuhammadAhmad-ld1rf
    @MuhammadAhmad-ld1rf 3 ปีที่แล้ว

    Best example on youtube !

  • @recordingsp7833
    @recordingsp7833 5 ปีที่แล้ว +11

    Excellent

  • @neelamJ77
    @neelamJ77 2 ปีที่แล้ว +1

    thanks for the very good explanation

  • @anonymoususer1595
    @anonymoususer1595 3 ปีที่แล้ว

    Excellent explanation 👍👏

  • @pahunishrivastava9703
    @pahunishrivastava9703 3 ปีที่แล้ว

    Thankyou very much , this was very helpful video

  • @adwaitjayantrane9697
    @adwaitjayantrane9697 4 ปีที่แล้ว +45

    Its her choice 😂😂😂*confusing ML reactions*

    • @TheApoorvc
      @TheApoorvc 3 ปีที่แล้ว +3

      HAHAHAAHA ur joke is so underrated man !! hilarious

    • @takeshiasahi5494
      @takeshiasahi5494 3 ปีที่แล้ว +2

      lul 🤣

  • @amosmwiti4118
    @amosmwiti4118 3 ปีที่แล้ว

    just like ABCD simple to understand 😊 I really needed this

  • @bhargavpotluri5147
    @bhargavpotluri5147 4 ปีที่แล้ว +8

    Thanks for the video. That was good. What if the KNN prediction was not a majority one? Like in the above example if 3 candidates say 'cricket', 'football' and 'Neither'. Which one to choose ?

    • @pgyolarp
      @pgyolarp 2 ปีที่แล้ว +3

      then increase your K value

  • @anirudhmakwana6161
    @anirudhmakwana6161 4 ปีที่แล้ว

    Topic is cleared as crystal clear thanks a lot sir💕❣🤍

  • @PGCD
    @PGCD 4 ปีที่แล้ว +1

    Very cool!! Just a little mistake... the distance between Angelina and Zaira is not 9 but 29

  • @balajipadmanaban7692
    @balajipadmanaban7692 3 ปีที่แล้ว

    Awesome, crystal clear friend

  • @sheetalkumarsahu2105
    @sheetalkumarsahu2105 ปีที่แล้ว

    Great Explaining the Concept Sir, But I think Sara is needed to be considered in stead of Zaira as distance from Zaira is 29, not 9.

  • @nancyhada4480
    @nancyhada4480 3 ปีที่แล้ว

    You are too good, thanks for the amazing video.

  • @KalyanGk0
    @KalyanGk0 3 ปีที่แล้ว

    Clearly understand the concept thank you😊

  • @saqlain_nism
    @saqlain_nism ปีที่แล้ว

    Thanks A lot from Bangladesh

  • @abhisheksatish7612
    @abhisheksatish7612 4 ปีที่แล้ว

    Wow.. Simple and clear👍

  • @sainadhakula
    @sainadhakula 4 ปีที่แล้ว +1

    nice explanation bro

  • @yuvalhadad6368
    @yuvalhadad6368 2 ปีที่แล้ว

    thank you, i didnt listen in class but you made it super clear

  • @hmalik9583
    @hmalik9583 4 ปีที่แล้ว +3

    Thank you! This was very helpful.

  • @noshinunnoor9561
    @noshinunnoor9561 4 ปีที่แล้ว +5

    That's a nice explanation but I think you miscalculated the value of distance zaira, it will be 29

  • @prashantgore4725
    @prashantgore4725 5 ปีที่แล้ว

    Superb explaination...wow... excellent

  • @saurabhdnyandeosonawane9388
    @saurabhdnyandeosonawane9388 2 ปีที่แล้ว

    thank you for such a wonderful explaination

  • @sugarplumm_
    @sugarplumm_ 2 ปีที่แล้ว

    Will this be ideal for user interests ?

  • @ancyjacob959
    @ancyjacob959 ปีที่แล้ว

    Thank u so much.. Well explained..

  • @irfanyaqub9643
    @irfanyaqub9643 5 ปีที่แล้ว +2

    God bless you ... keep it up...

  • @rashmidaksh7445
    @rashmidaksh7445 4 ปีที่แล้ว +1

    Thanks for great explanation

  • @محمداحمد-ز4ل6ط
    @محمداحمد-ز4ل6ط ปีที่แล้ว

    what if Angelina belongs to 3 different categories? what should we choose?