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

Поділитися
Вставка
  • Опубліковано 25 лис 2024

КОМЕНТАРІ • 380

  • @amritsharmapoudel959
    @amritsharmapoudel959 5 років тому +529

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

  • @DarlingHiroXX
    @DarlingHiroXX Рік тому +49

    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 роки тому +4

    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 3 роки тому +5

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

  • @bibekanandabhattacharjee952
    @bibekanandabhattacharjee952 3 роки тому

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

  • @SATHISCAT1
    @SATHISCAT1 4 роки тому +8

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

  • @omkarsurlakar3829
    @omkarsurlakar3829 Рік тому +1

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

  • @tejapanatula
    @tejapanatula 5 років тому +2

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

  • @krishnamohanverma4984
    @krishnamohanverma4984 5 років тому +128

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

    • @haiderwains3791
      @haiderwains3791 4 роки тому +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 Рік тому +4

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

  • @toieyat1955
    @toieyat1955 3 роки тому +6

    You are such a good explanator! Very well explained

  • @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.

  • @syedshasuheb709
    @syedshasuheb709 2 роки тому +7

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

  • @asfandyaarkhan2068
    @asfandyaarkhan2068 4 роки тому +8

    Brother Thank you so much ! All concepts cleared

  • @adityajoshi1606
    @adityajoshi1606 3 роки тому +1

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

  • @jo-ti
    @jo-ti 5 років тому +9

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

  • @JackCoderr
    @JackCoderr 11 місяців тому

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

  • @abhirajjondhale4948
    @abhirajjondhale4948 Рік тому

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

  • @gauravverma8974
    @gauravverma8974 3 роки тому +2

    Amazing sir , really understood the concept just in 5 min

  • @abhisheksaxena200
    @abhisheksaxena200 5 років тому +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 🤟

  • @Flowereacer89
    @Flowereacer89 3 роки тому +10

    Sir, this is high quality stuff.

  • @enigma2886
    @enigma2886 4 роки тому +2

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

  • @sarthak_parashar
    @sarthak_parashar 3 роки тому

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

  • @siddharthavchat201
    @siddharthavchat201 3 роки тому

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

  • @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 .

  • @pritomdas6215
    @pritomdas6215 5 років тому

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

  • @choudaryzeeshan9118
    @choudaryzeeshan9118 2 роки тому

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

  • @teenfu_animotion
    @teenfu_animotion 11 місяців тому

    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.

  • @hajramustafa6794
    @hajramustafa6794 4 роки тому +1

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

  • @varunroy2021
    @varunroy2021 3 роки тому

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

  • @-AbontyChowdhury
    @-AbontyChowdhury 2 роки тому

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

  • @aarohidave1631
    @aarohidave1631 2 роки тому

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

  • @zahid_9217
    @zahid_9217 Рік тому

    Finally I got it after coming from the previous semester.

  • @sarvanikandukuri7800
    @sarvanikandukuri7800 2 роки тому +4

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

  • @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

  • @sougatasen3691
    @sougatasen3691 3 роки тому

    Easiest explanation ever.

  • @parikshitraghav7543
    @parikshitraghav7543 5 років тому +1

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

  • @vaibhavsinghal1778
    @vaibhavsinghal1778 6 років тому +4

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

  • @bisheshtalukdar2163
    @bisheshtalukdar2163 5 років тому

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

  • @vaishalisalunkhe6536
    @vaishalisalunkhe6536 5 років тому

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

  • @Wingedarnav
    @Wingedarnav 8 місяців тому

    Kya teacher hai 🙌🏼

  • @reactor2208
    @reactor2208 5 років тому

    Super this is how you teach no jargons; thanks

  • @AI-implementation
    @AI-implementation 5 років тому

    Its very Cleared and in short thanks a lot

  • @tanuchaudhary245
    @tanuchaudhary245 2 роки тому

    such a good explanation, Thank you so much!!

  • @malikasif8029
    @malikasif8029 2 роки тому

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

  • @rishabhgupta9617
    @rishabhgupta9617 4 роки тому +1

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

  • @mdsohrabakhtaremam9555
    @mdsohrabakhtaremam9555 2 роки тому

    Greate sir learn so much within less tjme

  • @tusharnigam3917
    @tusharnigam3917 2 роки тому

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

  • @MayurKapadnis-pn4nk
    @MayurKapadnis-pn4nk Рік тому

    Excellent explaination. thank you sir🙏🙏

  • @maxymax686
    @maxymax686 Рік тому

    Very nice way of teaching sir!!

  • @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

  • @hiteshvarmap6210
    @hiteshvarmap6210 5 років тому +6

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

  • @omsavitrupophali5112
    @omsavitrupophali5112 2 роки тому

    extremely good teaching

  • @shubhashishmishra3592
    @shubhashishmishra3592 3 роки тому +1

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

  • @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 років тому +96

      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 Рік тому +6

      @@kartikchoudhary6195 thankyou for the 3rd point 👍🏻

    • @019_deepdas2
      @019_deepdas2 Рік тому +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

  • @222noor5
    @222noor5 10 місяців тому

    Thank you so much for save my time sir

  • @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

  • @WahidMuradChitrali2018
    @WahidMuradChitrali2018 5 років тому +1

    Zabr10 Explanation is real good

  • @sayantanghosh6714
    @sayantanghosh6714 2 роки тому

    Very nice explanation. Thank you!

  • @digvijaythorat4030
    @digvijaythorat4030 5 років тому +1

    Clearly Explanation....

  • @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

  • @priyaphapale5181
    @priyaphapale5181 5 років тому +1

    You are the best.

  • @pandharpurkar_
    @pandharpurkar_ 4 роки тому +1

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

  • @Shanza-xd5wq
    @Shanza-xd5wq Рік тому

    very well explained thank you sir

  • @ourworld143
    @ourworld143 Рік тому

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

  • @sanskrutichavan3580
    @sanskrutichavan3580 3 роки тому

    u explained very well sir , thank you so much !

  • @ExcelLearn
    @ExcelLearn 4 роки тому

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

  • @muhammadwaqas2000
    @muhammadwaqas2000 Рік тому +1

    very good sir

  • @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

    • @womenhavehivemind9043
      @womenhavehivemind9043 Рік тому +2

      yeah l was also confused why he didn't took 3.16

    • @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.

  • @digvijaysingh6723
    @digvijaysingh6723 2 роки тому +1

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

  • @vipinrajpoot6688
    @vipinrajpoot6688 2 роки тому

    Very good explanation.

  • @tech8317
    @tech8317 Рік тому

    Very well explained. Thank You :)

  • @sahilmusicsss
    @sahilmusicsss 11 місяців тому

    you are the BEST SIR

  • @rishikeshsawant7322
    @rishikeshsawant7322 5 років тому

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

  • @kanchanpathak9752
    @kanchanpathak9752 2 роки тому

    Wow! Amazing explanation!

  • @technicaltalks1173
    @technicaltalks1173 3 роки тому

    We can not take k as even no as you said. Because if we will take then there will be a tie possibility.
    So k should be odd no.

  • @thisisbhum2271
    @thisisbhum2271 5 років тому +14

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

  • @rabi11007
    @rabi11007 3 роки тому

    you save my day

  • @rensraks2007
    @rensraks2007 3 роки тому

    You are Just brilliant!!! Amazing explanation

  • @sadiabatool2690
    @sadiabatool2690 Рік тому

    Sir your Vedio was fantastic

  • @kishanbhise4733
    @kishanbhise4733 3 роки тому

    very well explained sir

  • @pradnya362
    @pradnya362 5 років тому

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

  • @halaimam4147
    @halaimam4147 4 роки тому

    Zabardast👏👏👏👏👏

  • @snehaldivekar2294
    @snehaldivekar2294 6 років тому

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

  • @tanubadola1525
    @tanubadola1525 3 роки тому

    Very well explained. 😊
    Thankyou

  • @fatimaiqra2169
    @fatimaiqra2169 Рік тому

    thanks for saving time.

  • @AhamedKabeer-wn1jb
    @AhamedKabeer-wn1jb 2 роки тому

    Thank you Sir..well explained..

  • @chinmaymathur2430
    @chinmaymathur2430 Рік тому +1

    why we have selected 3 why not 2 or any even number?
    OR SIRF EK EXAMPLE SE KYA HOGA

  • @dipeshdagar8184
    @dipeshdagar8184 7 місяців тому

    😇😇😇 NICE EXPLAINATION

  • @vaibhavmohite468
    @vaibhavmohite468 5 років тому +2

    Nice Explanation

  • @sidrahms7458
    @sidrahms7458 3 роки тому +2

    What if K=4 and 2 nearest point are pass and other 2 nearest point are fail, what will be the result then?

  • @ShreyasbhargavaCanada
    @ShreyasbhargavaCanada Рік тому

    Awesome explanation keep it up

  • @yushmittal8180
    @yushmittal8180 5 років тому +1

    Bro tu Kamal hai yaar

  • @mehakverma4195
    @mehakverma4195 3 роки тому

    7:57 mins worth it :)

  • @rohandhameja7525
    @rohandhameja7525 Рік тому

    Thank you sir for this videos🎉

  • @opinion_poll
    @opinion_poll 2 роки тому

    Very helpful, subscribed for your help

  • @MOHAMMADANAS-rm7yg
    @MOHAMMADANAS-rm7yg 2 роки тому

    thank you....from karachi

  • @piyushkumar8470
    @piyushkumar8470 5 років тому +1

    Thank you so much sir for your assistance..

  • @AnkitSharma01975
    @AnkitSharma01975 3 роки тому

    Good Explanation👍

  • @varunsingh9432
    @varunsingh9432 2 роки тому

    amazing explaination