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.
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.
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...
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.
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 🎉
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?
@@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.
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.
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
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
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
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.
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 .
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
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 ?
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👍👍
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.
Brilliant. Thank you so much. Simple pen + paper made this so easy to understand. I have a question: say those 3 all had different classes. So Zaira had Cricket, Sara had Neither, Michael had Football. Is the solution here to increase the K number?
Thanks for the info sir. Its really good one and simple. But my question is that on what basis wehave to choose the K value. It could be 3 or 4 or 5 also. So what is the deciding factor for choosing the value of K .
It should always be odd value.And also we have techniques like hyper parameter tuning which can help choose best value of 'k'.Also in real time we use KNN Imputer as well which will return best suited k value at runtime
Thank you for the explanation. I have a small doubt. What if the final 3 nearest neighbors were from 3 different groups "cricket", "football", and "neither". In this case, there is no majority what should we do?
While applying knn ,it takes care to select the points avoiding such situations..coz data cleaning and preprocessing will be applied first..the example above is only explain the concept..if you want you can watch implementation of KNN
Distance calculated for Zaira is wrong it should be 29. (5-34 = 29 and 29*29 = 841 and root of 841=29 . Please correct me if I am wrong. Thank You Sir.
Extremely helpful! But what if the no. of parameters will be (i.e Age, Gender, Nationality, Height ) 4 .. then by which formula are we going to calculate the distance?
in case of KNN values of 'k' is always taken as odd number and not as even number....even value of 'k' is always avoided....I came to know this through one of yogesh murumkar's online trainings which was for free.....he showed everything with hands on explanation....crisp and clear
Value of k should always be odd.. while implementing there are methods to select best value of 'k' from the given provided values...you can refer implementation of knn using python as well..
NO ONE..NO ONE explains topics more clearly than an Indian youtuber with pen and paper.Amazing video😄
hahahahahahaha
Can't be more true 😂
what he said
I do not know why university lectures a so good at making these concepts very complicated. This video truly helped me. Thank you!
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.
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..
Best use of 13min. Videos like this are just gem! 💎💎💎 I wish university faculties could teach you like this.
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.
Most people find an easy way to explain KNN, but that you so much taking the effort and make it so simple. 🤩
Sir, As an outsider I became real fond of Indian YT,
How they present & instruct the material! 😌😍
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...
Very Nice Explanation,Sir.Needs More This Type Of Tutorial From You.
sure thank you
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.
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 🎉
Wonderfully explained no other resource required again to understand KNN
Thank you so much dada. I`m taking preparation for the final exam and it`s too much helpful for me.
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?
finally found the comment that i was looking for
How to assume the value of k?
@@abhishek0001. that will be given in the question
if sport class were cricket,neither,football then i think we have to increase the k value
@@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.
Dear Sir, It's very helpful. Kindly make more videos in same format. Please. It opens our brain in simple way
Watching ....30 Min before Semester Exam.......Thanks bro🤙🤙🤙
Really very much needed and it helped me a lot... Clear and crisp
À
Best explanation of KNN I have seen on RUclips. Thank you!
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.
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
sure i will do that...
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
very well done....I looked for dozens of videos on this topic but yours is the ultimate ...awesome ...pl upload more videos..thank you!!!!!
Your videos give very neat description of machine learning algorithms. Please make more videos
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
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
Yes that can be done during implementation!!
Bro why same details have small variation in distance?
खूप छान, सुरळीत आणि सोपं👌👌👌
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
Easy to understand, this is by best video I've watch that explained it clearly with examples.
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.
I am glad if it helped you.....
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 .
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.
Yes u r right.
Yes that's there ..but hope you got the concept...I will try to create a video with correct values.. thanks
@@yogeshmurumkar plz post it asap
Very Simple but best video to understand...😍😍Thanks
thank you very much for the video! helped me pass my exam on big data 😎
One such satisfied conceptual explanation which i come across, Thank you so much
Great explanation..Thanks ..last minute exam prep students like here
Thanks sir, your explanation is very very easy to understand
You saved my life I have exam tomorrow !!!
After my college and other ytb'rs confused me as hell ..... you showed up as an angel.
Its her choice 😂😂😂*confusing ML reactions*
HAHAHAAHA ur joke is so underrated man !! hilarious
lul 🤣
Your explanation is fully understandable. Cleared all points.
Sir really explained in simple way.Thank you 👏
thank u sir
iam from Iraq and I depend on ur videos
i wish university professors could explain this under 13mins
Love you yogesh brother the way your explaining is awesome brother
you have explained in an Efficient way: real world example with clear sights
I should really say, thank you so much so so much. You have explained this concept very deeply and very easily. ❤❤
Very cool!! Just a little mistake... the distance between Angelina and Zaira is not 9 but 29
Yes you are right
Thank you very much it helps, from Bangladesh
Thanks..I am glad if it helped you!!
Thank you so much, finally a simple clearly video about it
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.
That's why I love Indian people, thank you
Thank you, Very well explained 😍. What if some values of age and gender are missing ? How we will calculate the distance from those to Angelina's?
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
f
Well done Yogesh. Keep it up.
Explanation should be this simple.. You now have a new subscriber
Very simple n neat explanation of distance calculation
Nice explanation. I need prediction of more data. If you calculated one person output. similarly how to find more than one ?
TQ sir watching this before exam 🫠
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 ?
then increase your K value
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👍👍
√(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
Its 29 n he wrote 9
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.
@@pankajprajapati3972 yes
Exactly i was like with age 34 how it beats sara with 16 . he should correct it.
@@saiakhileshveldi4580 where is Arun in the example?
Great video, with a very clear explanation. I understood very easily with it.
That's a nice explanation but I think you miscalculated the value of distance zaira, it will be 29
Excellent....very useful
Saved our sinking grades. Thank you
Superb
Thank you so much 🙏💫
Great video, with clear explanation. Thank you sir.
Great video... It focussed on the math which exactly I was looking for
You explained very well. Thank you ❤
Explained flawlessly ❤
Very beautiful way to explain sir
This is brilliant. Thank you so much for the clear and simple explanation.
Excellent video very easy to understand
but there is typo at end of Title of video "Leaning->Learning"
yeah thanks...I will correct that...
Brilliant. Thank you so much. Simple pen + paper made this so easy to understand. I have a question: say those 3 all had different classes. So Zaira had Cricket, Sara had Neither, Michael had Football. Is the solution here to increase the K number?
Yes during implementation you have options..you can try using python and scikit-learn
7:45 very well explained
excellent. Clearest explanation so far
Really nice explanation...!!!
Thanks for sharing...!!!
just like ABCD simple to understand 😊 I really needed this
Well done my friend, this really helped!
Thanks for the info sir. Its really good one and simple. But my question is that on what basis wehave to choose the K value. It could be 3 or 4 or 5 also. So what is the deciding factor for choosing the value of K .
It should always be odd value.And also we have techniques like hyper parameter tuning which can help choose best value of 'k'.Also in real time we use KNN Imputer as well which will return best suited k value at runtime
thank you, i didnt listen in class but you made it super clear
Hi, Zaira distance is 29 -> ((5-34)^2)^(1/2). Then Sara will be closer, but answer remains the same :)
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.
Thank you for the explanation. I have a small doubt. What if the final 3 nearest neighbors were from 3 different groups "cricket", "football", and "neither". In this case, there is no majority what should we do?
While applying knn ,it takes care to select the points avoiding such situations..coz data cleaning and preprocessing will be applied first..the example above is only explain the concept..if you want you can watch implementation of KNN
Thankyou very much , this was very helpful video
Sir, how to arrange in ascending order if two or more data points have the same Euclidian distances but have different classes.
Thank you bro, I will suscribe
Topic is cleared as crystal clear thanks a lot sir💕❣🤍
nice explanation bro
thanks for the very good explanation
Thanks yogesh this was very helpful for me :)
i like it simplified.But i think there is some calculating mistake on Zaira's distance to Angelina.
Excellent
Distance calculated for Zaira is wrong it should be 29. (5-34 = 29 and 29*29 = 841 and root of 841=29 . Please correct me if I am wrong. Thank You Sir.
Thanks for making maths simpler n fun
Very well explained. Helped me a lot. Thanks
Extremely helpful!
But what if the no. of parameters will be (i.e Age, Gender, Nationality, Height ) 4 .. then by which formula are we going to calculate the distance?
in case of KNN values of 'k' is always taken as odd number and not as even number....even value of 'k' is always avoided....I came to know this through one of yogesh murumkar's online trainings which was for free.....he showed everything with hands on explanation....crisp and clear
The distance formula will then accommodate all other attributes (Nationalitionality, Height) just like (x1-x2)2 + (y1-y2)2 + (z1-z2)2 ...
thank you for such a wonderful explaination
Hi sir, Nice video,One doubt how to determine the K value ?
Value of k should always be odd.. while implementing there are methods to select best value of 'k' from the given provided values...you can refer implementation of knn using python as well..
@@yogeshmurumkar Thanks sir
thank you to making easy to understand. wwell done