K-Nearest Neighbor Classification ll KNN Classification Explained with Solved Example in Hindi

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

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

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

    Because of your videos, my professor said: 7:11. Thank you so much!

  • @DarlingHiroXX
    @DarlingHiroXX ปีที่แล้ว +52

    if someone like myself is thinking how to find the value of k, so here it is:
    K should be the square root of n (number of data points in the training dataset).
    K should be chosen as the odd so that there are no ties. If the square root is even, then add or subtract 1 to it.

  • @RaghavSharma-ei9hg
    @RaghavSharma-ei9hg 4 ปีที่แล้ว +6

    Thank you very much Sir! i am a student of you but still saying Sirji aapke method of Teaching mein Quality, Effectiveness aur Time Efficiency teeno hai. Aapke Efforts ke liye bahot bahot Dhanyavad.

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

    Thank u so much sir...aap wo concept 5 min clear krdete ho jo hamare teachers pure semester me nhi kr pate

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

    Sir , Great explanation , thanks a lot , am having zero knowledge on this,but learnt because of you

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

      thought my 2nd name was complicated to spell

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

    Brother Thank you so much ! All concepts cleared

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

    You are such a good explanator! Very well explained

  • @arushisaxena2936
    @arushisaxena2936 6 วันที่ผ่านมา

    sir you're a gem, thankyou for the easiest and detailed explanations!

  • @jo-ti
    @jo-ti 5 ปีที่แล้ว +10

    It was really very helpful for me. Your way of teaching is really very good.

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

    The bestest channel for last minute preparations in machine learning 💯💯💯

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

    Has anyone noticed that we can directly conclude pass from the second row of the given data :D BTW Nice explanation

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

      yes we can conclude from the 2nd row but if data set is large then difficult to conclude.Thanks

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

      No we can't because we need to see CS marks too

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

      ​@@alphagamma7662 its 8 more than 7, so technically he is passed 🤟😂

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

      But it is not for us.
      It is for computer?
      Is it computer has brain like you?

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

    Thanku sir we are very fortunate to have this TH-cam channel as well as your way of teaching and skills got to you

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

    Sir, this is high quality stuff.

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

    Thank you , very very much.
    मैंने कितना वीडियो देखा पर यह सबसे अच्छा हैं.
    Please also tell how to choose or select "K".

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

    thank you so much for creating such videos i am passing my exams just because of you god bless

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

    This is good. Can you tell me how to calculate distance if the indicator variables are numerical and categorical. For e.g P1={4,6,f,8,v} & P2={8,2,y,7,p}

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

      You need to convert all those categories into numbers like if you have 3 categories v,p,y so it will be converted into 0,1,2. So all the v's in data will get converted to 0, p's to 1 and so on 🤟

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

    Amazing sir , really understood the concept just in 5 min

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

    kal meri machine learning ki exam hai or aaj mevideos dekh rhi apke it helpss alot sir thank you so much!!!!!

  • @MDSHARIFUDDIN-fs9pm
    @MDSHARIFUDDIN-fs9pm ปีที่แล้ว

    Thank you very much i cleared many topics because of you .hope my exam goes well.

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

    Congratulations Bhai Pass hogaya, ab mai bhi yeh vimdeo dekh ke paas ho jaunga 😼

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

    best channel to study at last night ....Thank you !!

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

    guys dont waste your time on youtube , just watch this video , best video on whole youtube

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

    wah..keya simple explanation sir...aap kamal kah teacher ho

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

    You are more than a teacher , a magicial ,,, thank you so much sir

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

    Love the pace of your videos, I was finally able to watch a video in which the instructor maintained his pace and I could skip through and understand everything

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

    Bhai I just love your style and effort. Awesome video bro.

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

    I have few questions
    1. Why did you take k=3
    2. Why wasn't 3.16 considered nearest to 3
    3. Had we set k=2 and result as 1 Fail and 1 Pass, what would have been the conclusion?

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

      1. K is the number of nearest neighbours that have to be acknowledged. K is provided in the question usually.
      2. 3 is not the comparison value. That is just the number of neighbours you have to figure out. you have to compare the values to zero. Consider x to be on the origin and you are figuring out the distances of it's nearest neighbours.
      3. k=2 here will give two pass. If it was one pass and one fail then you would have to consider one more neighbour to give you some probable answer.

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

      @@kartikchoudhary6195 thankyou for the 3rd point 👍🏻

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

      @@kartikchoudhary6195 If the number of pass fail is equal and there is no more neighbour then what will be the answer ?

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

      @@019_deepdas2 That just means the question didn't choose an appropriate value of k. It will have to be adjusted to include less or more neighbors to consider. I don't think an exam would include such a question unless they want you to explain what should be done to remedy this.

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

      k should be taken as odd number only

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

    kdk explaination sir.....Its really the 5 minute engineering.....

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

    Thank you so much Sir, it's my best channel ever😇

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

    Really helpful for exam preparation within a short span of time ,thank u for ur effort sir🤩🤩🤩

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

    Zabr10 Explanation is real good

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

    I am very happy sir
    This topic very help my final exam

  • @22gauravkumar70
    @22gauravkumar70 ปีที่แล้ว

    important observation
    1. if k is not given in the question , always take k as a odd number to avoid tie.
    2. for guessing take square root of n , and if it comes out to be a even number , then add or subtract +1 .

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

    Thanks a lot sir. Am from Bangladesh and thankful for video.

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

    5:33 Correction: The point is in fact the farthest from x. We are not comparing the distances with k, it just represents the number of nearest points we will consider. We are actually comparing the distance with 0, the smaller the distance the closer it is to 0 and the nearer it is to x! Great video nonetheless!

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

      thanks, actually i confused at that point

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

      3 is not the comparison value. That is just the number of neighbours you have to figure out. you have to compare the values to zero. Consider x to be on the origin and you are figuring out the distances of it's nearest neighbours.

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

    Easiest explanation ever.

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

    7:45 kr diya sir.....

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

    Awesome explanation.....very simple and easy yet effective.....great job...:)

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

    Sir, you explained the whole concept in an easy way. Thank you so much!

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

    Thanks for this video......your teaching method is toooooo good please give also another example of this point

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

    Tomorrow is my exam and your short Video are really helpful ❤

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

    Finally I got it after coming from the previous semester.

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

    Thanks sir paper aacha gaya aapki vagase!!!!🙏🙏🙏

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

    such a good explanation, Thank you so much!!

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

    Super this is how you teach no jargons; thanks

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

    Awesome explaination of algo in short time, great video sir!!👍

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

    Kya teacher hai 🙌🏼

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

    You are Just brilliant!!! Amazing explanation

  • @AI-implementation
    @AI-implementation 5 ปีที่แล้ว

    Its very Cleared and in short thanks a lot

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

    Greate sir learn so much within less tjme

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

    wow, it's like you gotta kidding with me, jsy sir g ap ny hr chz explain ki mza a gya, thanks a lot sir

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

    Very nice way of teaching sir!!

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

    bhai bhot mast short and sweet explain kiyay....

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

    Very nice explanation. Thank you!

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

    u explained very well sir , thank you so much !

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

    Very well explained. Thank You :)

  • @222noor5
    @222noor5 ปีที่แล้ว

    Thank you so much for save my time sir

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

    Great teaching Sir Ji, keep it up & GOD blessed Uhhh😃👌✌🤟👍👏

  • @MayurKapadnis-pn4nk
    @MayurKapadnis-pn4nk 2 ปีที่แล้ว

    Excellent explaination. thank you sir🙏🙏

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

    Excellent sir. Please also make practical with python..............

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

    sir bahot acche padathe he ....video chota banane ke liya app chota solving part skip kare to be achha hoga

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

    Bhai case based reasoning par big bana de ek video......exam hai pls

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

    hi brother. good videos, could you make a video explaining svm ?

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

    extremely good teaching

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

    Very well explained. 😊
    Thankyou

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

    Wow! Amazing explanation!

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

    aghr duno yes ho jain or duno no to kon saw choose krain jaisy k ki value 4 h to tie a jay to kya krian gay

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

    Another awesome video...Thanks
    What if the Pass Probability = Fail Probability ?

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

      Go for anyone

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

      That is the reason we should take k an odd number, so that you'll never endup getting a tie

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

      ​@@vivektomar4208 that would be a biased result

  • @Shanza-xd5wq
    @Shanza-xd5wq ปีที่แล้ว

    very well explained thank you sir

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

    hamare coaching centre vale sir aapke videos dekte aur hume padate hain, aapke example ka screenshot lete hain aur itne ache se explain tak nahi kiya.

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

    Very nice and clear explanation, thank you so much Sir.

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

    Sir u are dam amazing trust me.. the way u explain topics in so amazing and wonderful..🔥🔥🔥🌟⭐

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

    Clearly Explanation....

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

    I have a question, can we consider any random number for 'x' provided in the dataset? For Math and CS?
    Or is there is any calculation behind the X of Math and CS?

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

    Can anybody explain that how the actual algorithm works becoz everyone teachs about problems but not on algorithms😑

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

    Sir your Vedio was fantastic

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

    Thank you Brother!! Are u mechanical Engg. Background?

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

    7:57 mins worth it :)

  • @dipeshdagar8184
    @dipeshdagar8184 8 หลายเดือนก่อน

    😇😇😇 NICE EXPLAINATION

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

    Very good explanation.

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

    Thanks u sir... Also make videos on Theory of computation...

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

    Thank you so much sir for your assistance..

  • @AhamedKabeer-wn1jb
    @AhamedKabeer-wn1jb 3 ปีที่แล้ว

    Thank you Sir..well explained..

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

    Thank you sir for this videos🎉

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

    Very well explained.......Keep it up.

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

    Your all videos in ML are good. For this particular one you have not explain that to have decision we must always K as ODD number and how to arrive at best K value , also what if the label is numeric instead of boolean.

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

      We use odd values for k just to avoid tie situation and there is no hard & fast rule for finding value of k and it can be taken experimentally. Few methods are there like elbow method etc

  • @snehaldivekar2294
    @snehaldivekar2294 6 ปีที่แล้ว

    We likes your all videos... We require haversine algorithm with simple example.. Please request you to make it for us..

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

    you save my day

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

    what if k is equal to 4 and we get 2 pass and 2 fail from euclidean distance

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

    You are the best.

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

    you are the BEST SIR

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

    Awesome explanation thanks alot sir! 👌

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

    Awesome explanation keep it up

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

    thanks for saving time.

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

    Very helpful, subscribed for your help

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

    You nailed it, thank you!

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

    very well explained sir

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

    Thanks a lot from Bangladesh

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

    Nice Explanation

  • @VijayKumar-pd8mu
    @VijayKumar-pd8mu 3 ปีที่แล้ว +1

    Excellent explanation, Bro!
    you have good command over the concept.