Тёмный

KNN Algorithm In Machine Learning | KNN Algorithm Using Python | K Nearest Neighbor | Simplilearn 

Simplilearn
Подписаться 4,4 млн
Просмотров 594 тыс.
50% 1

Опубликовано:

 

29 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 925   
@SimplilearnOfficial
@SimplilearnOfficial Год назад
"🔥Caltech Post Graduate Program In AI And Machine Learning - www.simplilearn.com/artificial-intelligence-masters-program-training-course?HKqjENq9OU&Comments&RU-vid 🔥IITK - Professional Certificate Course in Generative AI and Machine Learning (India Only) - www.simplilearn.com/iitk-professional-certificate-course-ai-machine-learning?HKqjENq9OU&Comments&RU-vid 🔥Purdue - Post Graduate Program in AI and Machine Learning - www.simplilearn.com/pgp-ai-machine-learning-certification-training-course?HKqjENq9OU&Comments&RU-vid 🔥IITG - Professional Certificate Program in Generative AI and Machine Learning (India Only) - www.simplilearn.com/iitg-generative-ai-machine-learning-program?HKqjENq9OU&Comments&RU-vid 🔥Caltech - AI & Machine Learning Bootcamp (US Only) - www.simplilearn.com/ai-machine-learning-bootcamp?HKqjENq9OU&Comments&RU-vid"
@SimplilearnOfficial
@SimplilearnOfficial 3 года назад
We hope you enjoyed watching our video. The link for the dataset used in the video is provided in the description. Thanks!
@claytonjesus4635
@claytonjesus4635 3 года назад
I guess im randomly asking but does any of you know of a trick to log back into an instagram account..? I somehow forgot the account password. I appreciate any help you can offer me
@giridharreddy5125
@giridharreddy5125 4 года назад
Thank you so much for this video, your way of explanation is really great, i really admire it. Thank you very much again
@SimplilearnOfficial
@SimplilearnOfficial 4 года назад
You are welcome!
@anynamecanbeuse
@anynamecanbeuse 5 лет назад
what parameters are going to be trained? it seems it's just a non parametric model.
@shahraj165
@shahraj165 5 лет назад
How we can plot graph with matplotlib?
@SimplilearnOfficial
@SimplilearnOfficial 5 лет назад
To understand matplotlib, check out our tutorial on the same: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-OKJyGzgWP6c.html
@raefmac7436
@raefmac7436 3 года назад
Great video, up until the point where you skipped the part where you show how to train the algorithm. One could argue thats the most important part...
@SimplilearnOfficial
@SimplilearnOfficial 3 года назад
Keep learning with us .Stay connected with our channel and team :) . Do subscribe the channel for more updates : )
@sinchanar8715
@sinchanar8715 4 года назад
These tutorials are easy to understand and informative compared to other videos😌Thanks:)
@SimplilearnOfficial
@SimplilearnOfficial 4 года назад
You're welcome 😊
@KrisYT
@KrisYT 3 года назад
I've been trying to understand this for weeks and you've summed it up in the first 2 minutes. Light bulb moment!
@SimplilearnOfficial
@SimplilearnOfficial 3 года назад
Glad you found it useful! Thank you for watching!
@tudorradu5848
@tudorradu5848 7 месяцев назад
Great tutorial. Thank you!
@shambhavisadhashivam4123
@shambhavisadhashivam4123 5 лет назад
Thank you for sharing this video it was very clear in detailed manner with example. But I have a doubt in whether I to should take squareroot of n (n = Sum of Output of Distance Function) for calculating K. 5:11 (Choosing K) 8:55 (Choosing K=3)
@xunnygujjar2094
@xunnygujjar2094 3 года назад
My professor took 1 hour to clear the basic concepts of KNN but I was unable to understand. Thanks for clearing my concepts in just under 15 minutes. Thanks a lot. Really appreciated. I am going to subscribe your channel. Thanks once again.
@SimplilearnOfficial
@SimplilearnOfficial 3 года назад
Thank you for the appreciation. You can check our videos related to various technologies and subscribe to our channel to stay updated with all the trending technologies.
@shoroukelsebaie8487
@shoroukelsebaie8487 5 лет назад
Thanks alot that's very helpful, but when trying to use StandardScaler an error occurs "ValueError: could not convert string to float" i can't solve it , ahat shall i do ? thanks in advance.
@11hamma
@11hamma 4 года назад
i know im late but anyways it occurs because string data cant be standaradized i.e. put into StandardScaler. comvert it to float value try doing this: df[column_name] = df[column_name].astype('float') (i didnt try it myself but it should hopefull solve the issue)
@samsupertaco
@samsupertaco 2 года назад
Incredible video. I used it when I first heard of KNN to better understand it, and just used it to create my first model. You all are the best!
@SimplilearnOfficial
@SimplilearnOfficial 2 года назад
Thank you for the appreciation. You can check our videos related to various technologies and subscribe to our channel to stay updated with all the trending technologies.
@D-Ratz
@D-Ratz 2 года назад
nice video but could you guys show us how we can insert the new data into the model and the model itself will classify it.
@SimplilearnOfficial
@SimplilearnOfficial 2 года назад
Hey ,we'll go into these implementations in detail in another video. Stay tuned!
@gideonyuval
@gideonyuval 3 года назад
Thanks for a *fantastic* video!!! may I ask - when determining K, why do you do the sqrt of y_test, rather than y_train (or x_train, which is the same length). In the video, it looks like you intended to do that, then for some reason - changed it...
@CGATTMUSIC
@CGATTMUSIC 2 года назад
amazing video It clicked for me around 8:30. I am trying to make a 20Q voice bot
@SimplilearnOfficial
@SimplilearnOfficial 2 года назад
We are glad you found our video helpful. Like and share our video with your peers and also do not forget to subscribe to our channel for not missing video updates. We will be coming up with more such videos. Cheers!
@roseb2105
@roseb2105 5 лет назад
whats a confusion matrix?
@SimplilearnOfficial
@SimplilearnOfficial 5 лет назад
In the field of machine learning and specifically the problem of statistical classification, a confusion matrix, also known as an error matrix, is a specific table layout that allows visualization of the performance of an algorithm, typically a supervised learning one. Hope that helps!
@ZeeshanJamal-dm9jy
@ZeeshanJamal-dm9jy 3 года назад
If you're confused about confusion matrix, you should check out zero r and one r classifier.
@adityapathania3618
@adityapathania3618 3 года назад
Everything is great the only issue was the mic , please use some other it actually comes with a lot of intensity
@SimplilearnOfficial
@SimplilearnOfficial 3 года назад
Thanks for watching our video and sharing your thoughts. Do subscribe to our channel and stay tuned for more. Cheers!
@amithnambiar9818
@amithnambiar9818 2 года назад
20:32 Correction - standard scaler does not restrict the range of data between -1 to +1 . It converts the data to a mean of 0 and standard deviation of 1 . So if u take the mean of a standardised column ul find it equals 0. It basically skews the data to a smaller range and makes it comparable with other variables with different magnitudes which otherwise would not have been comparable. Min-max scaler (normalisation) restricts the data between 0 to +1.
@josephwhite5563
@josephwhite5563 2 года назад
true, the formula is normalisedX= (X-mean)/deviation
@truffboy1263
@truffboy1263 5 лет назад
Can i use k-nn if i have like 48 features? Or was it too much? If so, what type of ML method would you recommend for it?
@SimplilearnOfficial
@SimplilearnOfficial 5 лет назад
You'd rather use random forest for this.
@lfreeordye7791
@lfreeordye7791 2 года назад
This is an amazing video! I am trying to help my niece and have never read anything about KNN in my life but the way this video explains it is simply awesome! So thankful to you for creating this video as it would help thousands of students and those family members that want to help them learn properly. Do not understand why some professors can't seem to explain it so simply as you have! God bless you man!
@SimplilearnOfficial
@SimplilearnOfficial 2 года назад
WooHoo! We are so happy you love our videos. Please do keep checking back in. We put up new videos every week on all your favorite topics. Whenever you have the time, you must also check out our blog page @simplilearn.com and tell us what you think. Have a good day!
@ernestanonde3218
@ernestanonde3218 2 года назад
you put it better than I did. I have been struggling to understand what KNN means. Had over 6 lecturers mentioning it in the class but it still sounded vague. But he just made my day with this video.
@etn422
@etn422 3 года назад
Dataset used in video: www.kaggle.com/uciml/pima-indians-diabetes-database
@SimplilearnOfficial
@SimplilearnOfficial 3 года назад
Hello, thanks for viewing our tutorial. It would be helpful if you will provide your email ID to us so that we can send the requested dataset promptly. On the off chance that you need your email ID to be kept hidden from others, we can do that too. Hope that helps.
@YT_0007
@YT_0007 4 года назад
Better than Edureka
@SimplilearnOfficial
@SimplilearnOfficial 4 года назад
Glad you enjoyed our video! We have a ton more videos like this on our channel. We hope you will join our community!
@antonmakki7283
@antonmakki7283 3 года назад
is the source code available somewhere for practise purpose?
@SimplilearnOfficial
@SimplilearnOfficial 3 года назад
Hi, Simplilearn provides online training across the world. We would be happy to help you regarding this. Please visit us at www.simplilearn.com and drop us a query and we will get back to you! Thanks!
@pranavramachandrula3440
@pranavramachandrula3440 2 года назад
hey there is an error when i try to run this command Y_pred=knn.predict(X_test) Y_pred this is the error, Notfittederror
@sudhanshunautiyal6765
@sudhanshunautiyal6765 4 года назад
what fit() function do, as we know that we didn't train the Knn so why we are doing fit()
@SimplilearnOfficial
@SimplilearnOfficial 4 года назад
"Hi Sughanshu, The fit() method is used to train the model by passing the training parameters."
@shlokdoshi7162
@shlokdoshi7162 2 года назад
If a give an input list for the KNN algorithm to predict the classes of each element, How can I print out the list of inputs only belonging to a particular class?
@enzzzaapiking1149
@enzzzaapiking1149 3 года назад
Video is awesome and cat's are better than dogs xD
@SimplilearnOfficial
@SimplilearnOfficial 3 года назад
Glad you enjoyed our video! We have a ton more videos like this on our channel. We hope you will join our community!
@basavarajag1901
@basavarajag1901 2 года назад
Replace directly 0 with mean … callus you please let me know the reason to replace 0 with nan values ?
@piyushjain3763
@piyushjain3763 6 лет назад
Replacing zeros using pandas zero_not_accepted = ['Glucose','BloodPressure','SkinThickness','BMI','Insulin'] print(diabetes_data[zero_not_accepted].mean())#to know values of mean diabetes_data[zero_not_accepted] = diabetes_data[zero_not_accepted].replace(0, diabetes_data[zero_not_accepted].mean())
@ernestanonde3218
@ernestanonde3218 2 года назад
Best data science video ever. so detailed and explanatory. very good for beginners. Please keep making detailed videos like this
@SimplilearnOfficial
@SimplilearnOfficial 2 года назад
We are glad you found our video helpful. Like and share our video with your peers and also do not forget to subscribe to our channel for not missing video updates. We will be coming up with more such videos. Cheers!
@ghafoury
@ghafoury 2 года назад
Many thanks team, this leaa than 30mins clip saved me a couple of days to learn similar thing from some books and articles. Fantastic job :)
@SimplilearnOfficial
@SimplilearnOfficial 2 года назад
Glad it was helpful!
@vasudevaramakrishnappa4523
@vasudevaramakrishnappa4523 2 года назад
Very good video easy way to understand.
@SimplilearnOfficial
@SimplilearnOfficial 2 года назад
Glad it was helpful!
@vedasiva695
@vedasiva695 3 года назад
Great Video! Can I get that diabetes data set , so I can practice with it ? . Thanks.
@SimplilearnOfficial
@SimplilearnOfficial 3 года назад
Hello, thanks for viewing our tutorial. It would be helpful if you will provide your email ID to us so that we can send the requested dataset promptly. On the off chance that you need your email ID to be kept hidden from others, we can do that too. Hope that helps.
@vedasiva695
@vedasiva695 3 года назад
@@SimplilearnOfficial vedasiva4u@gmail.com , yes please make it hidden. Thank you very much for doing this.
@hamidaliawan4202
@hamidaliawan4202 2 месяца назад
Hi. You are doing an amazing work and it is so helpful. Is it possible to have the slides for our better understanding? Thank you
@reaper5377
@reaper5377 4 года назад
Finally ! easiest video i found😅.Thanks simplilearn!!!
@SimplilearnOfficial
@SimplilearnOfficial 4 года назад
Hello, thank you for watching our video. We are glad that you liked our video. Do subscribe and stay connected with us. Cheers :)
@mugash22
@mugash22 4 месяца назад
Using the same dataset and the same random_state =0. Why is my confusion matrix having a different value?
@xianchen4570
@xianchen4570 2 года назад
What a gem!!! Very clear and logic. I just have a question of k (k=11). Why using the sqrt(len(X_test))-1, not the sqrt(len(X_train))-1. Thanks!!!!
@SimplilearnOfficial
@SimplilearnOfficial 2 года назад
Keep learning with us .Stay connected with our channel and team :) . Do subscribe the channel for more updates : )
@Sachin-bg8gb
@Sachin-bg8gb 5 лет назад
selecting the value for K is sqrt of number of data points but here in this exaple tutor has taken sqrt of number of data points in test sample, please explain...and also missed on different ways of selecting K values...
@sanathkumarr9075
@sanathkumarr9075 Год назад
The video says one of the method to choose K value is sqrt(n) where n is number of Data Points, can anyone clarify data points here mean number of columns or volume of Data, if its volume then how to choose K value when volume is very high..?
@DGHere12
@DGHere12 3 года назад
Where to find this diabetes dataset? , please reply!!
@SimplilearnOfficial
@SimplilearnOfficial 3 года назад
Hello, thanks for viewing our tutorial. It would be helpful if you will provide your email ID to us so that we can send the requested dataset promptly. On the off chance that you need your email ID to be kept hidden from others, we can do that too. Hope that helps.
@DGHere12
@DGHere12 3 года назад
@@SimplilearnOfficial okk thanks for replying, may I know where should I submit my email ID?
@siddhidhavale7329
@siddhidhavale7329 4 года назад
Hi, great video thanks for putting it up. I have a question - now we know the model is 80% accurate but how to apply this to the question if someone has diabetes or not? Thats what i want to know how to do. thanks.
@SimplilearnOfficial
@SimplilearnOfficial 3 года назад
Thanks for watching our video and sharing your thoughts. Do subscribe to our channel and stay tuned for more. Cheers!
@nimadema3967
@nimadema3967 5 лет назад
What happens if we choose k value as same size of the number of observations in the training set?
@srinivasant418
@srinivasant418 5 лет назад
It is impossible to predict which class it belongs to
@SimplilearnOfficial
@SimplilearnOfficial 5 лет назад
True that!
@SimplilearnOfficial
@SimplilearnOfficial 4 года назад
"Hi Nima, If you have to choose the K value same as the size of the training set, then the values won't be segregated properly based on the nearest neighbors and the output will be very different."
@_SUSHOVANBANERJEE
@_SUSHOVANBANERJEE 2 года назад
Very nice explanation!!
@SimplilearnOfficial
@SimplilearnOfficial 2 года назад
Glad it helped!
@556west
@556west 2 года назад
Thank you very much for this tutorial, it has been very clear, it has helped me a lot for my first Machine Learning model. Awesome!!
@SimplilearnOfficial
@SimplilearnOfficial 2 года назад
Glad it helped!
@Ajazahm
@Ajazahm 3 года назад
My uni teacher made knn sucha scary thing to me... thanks God i found this vid...i m in love with knn now
@SimplilearnOfficial
@SimplilearnOfficial 3 года назад
Happy to help
@earlpappi5754
@earlpappi5754 3 года назад
hello, that's a great tutorial, thanks for the effort. I don't know if I missed it but I can't seem to find where you trained the model, or that step is not really important?!
@SimplilearnOfficial
@SimplilearnOfficial 3 года назад
It is our pleasure! Check out :www.simplilearn.com/tutorials/machine-learning-tutorial/knn-in-python for more in-depth tutorials! Happy learning!
@siyabongazungu1640
@siyabongazungu1640 4 года назад
Thank you alot for your work
@SimplilearnOfficial
@SimplilearnOfficial 4 года назад
Our pleasure!
@shreyanawani4218
@shreyanawani4218 4 года назад
thanks for such an impressive video.It covered all the important topics and code as well. Thankyou so so much
@SimplilearnOfficial
@SimplilearnOfficial 4 года назад
We are so grateful for your kind words. Also, subscribe to our channel and stay tuned for more videos. Cheers!
@MrFilmyBoy
@MrFilmyBoy 6 лет назад
Hi there, thanks for your video. it helps me alot in studing ML. I have one doubt, Why do you choose only glucose, BloodPressure, skinthickness, insulin and BMI?
@SimplilearnOfficial
@SimplilearnOfficial 6 лет назад
Hi Joshi, thanks for checking out our tutorial and tossing out your queries. Of course, there are a lot of factors affecting the actual result but we have chosen the most important and obvious factors for a clear understanding of the concepts used and to not confuse the audience with medical jargons. Thank you.
@reyndomly
@reyndomly 2 года назад
superb explanation
@SimplilearnOfficial
@SimplilearnOfficial 2 года назад
Thank you so much 🙂
@Magmatic91
@Magmatic91 4 года назад
Thank you for this great course. Very well explained. I subscribe :)
@SimplilearnOfficial
@SimplilearnOfficial 4 года назад
Awesome, thank you for subscribing to our channel.
@KyzaSaucer
@KyzaSaucer 4 года назад
UBER helpful - well set up and well explained - THANK U
@SimplilearnOfficial
@SimplilearnOfficial 4 года назад
Glad it was helpful!
@gaurideshpande1844
@gaurideshpande1844 4 года назад
Very nice explanation .....awesome visualization.
@SimplilearnOfficial
@SimplilearnOfficial 4 года назад
Hello, thank you for watching our video. We are glad that you liked our video. Do subscribe and stay connected with us. Cheers :)
@denisek6546
@denisek6546 3 года назад
I don't understand the confusion matrix. From what I understand, 94 - (actual) No diabetes 13 - (predicted) Has diabetes 32 - (actual) Has diabetes 15 - (predicted) No diabetes. Why is the matrix arranged like this? Wouldn't it be easier to compare actual vs predicted values for each outcome? Eg. 94 and 15 being in the same row so it translates to 94 people having no diabetes in actuality whereas the model predicted 15 people having no diabetes.
@SimplilearnOfficial
@SimplilearnOfficial 3 года назад
Hi Denise, Confusion matrix has 4 parameters - True positive, True negative, False positive and False negative. There are other metrics that can be derived from a confusion matrix. Watch the video below to learn how confusion matrix in detail: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-prWyZhcktn4.html Thank you for watching!
@gabiie9839
@gabiie9839 6 лет назад
Hi what if your dataset is all categorical how can we calculate the nearest neighbor ?
@SimplilearnOfficial
@SimplilearnOfficial 5 лет назад
When the data is categorical then it is not very much recommended to use KNN as there are many other algorithms that would do the task easily. But, if you need to use KNN then you must convert all categories into numbers and assign inter-category distances.
@Royyyyyboy
@Royyyyyboy 4 года назад
Can you help me resolve this issue: NameError Traceback (most recent call last) in ----> 1 dataset = pd.read_csv('/Users/shudhhoroy/Documents/diabetes.csv') 2 print(len(dataset)) 3 print(dataset.head()) NameError: name 'pd' is not defined Edit: If anyone is having this issue I just forgot to upload the document to jupyter 😅
@sudhilmishra
@sudhilmishra 3 года назад
Thank you for such great explanation !!!
@SimplilearnOfficial
@SimplilearnOfficial 3 года назад
You are welcome!
@Smimax6699
@Smimax6699 3 года назад
Is there a mistake at 7:54? It must be: (170-167)²-(57-54)². in your formular, the last number is 51... the x value of d1 in the coordinate system is wrong? Im right?
@vandankhambhata1280
@vandankhambhata1280 4 года назад
Hey this is really an amazing video! I was looking for this type of video and to my luck i found this!!
@SimplilearnOfficial
@SimplilearnOfficial 4 года назад
Hey Vandan, thank you for appreciating our work. We are glad to have helped. Do check out our other tutorial videos and subscribe to us to stay connected. Cheers :)
@sameersdeshpande9287
@sameersdeshpande9287 5 лет назад
hey edureka I want to complete this course and get certified.is that option available
@SimplilearnOfficial
@SimplilearnOfficial 5 лет назад
Hi Sameer, we are not Edureka and you can check out this link to get certified in Machine Learning: www.simplilearn.com/big-data-and-analytics/machine-learning-certification-training-course.
@linhviet2568
@linhviet2568 3 года назад
Amazing video. I'm learning data science and this helps a lot!
@SimplilearnOfficial
@SimplilearnOfficial 3 года назад
Glad it was helpful!
@mummakidstv
@mummakidstv 4 года назад
Thank you for the nice and crystal clear explanation. I have one doubt over here in choosing the K value for given dataset. how it come to 11 ? As you taught 'K' Value should be sqrt of data points given which are 768.
@binapatel2208
@binapatel2208 4 года назад
you cannot train against your entire dataset. You need to reserve a subset for testing/verification.
@ganeshsubramanian6217
@ganeshsubramanian6217 2 года назад
One of the best explanations I have come across, thank you so much!
@SimplilearnOfficial
@SimplilearnOfficial 2 года назад
Glad it was helpful!
@seano.7316
@seano.7316 2 года назад
Is there any way we can see what impact independent variables have on dependent variables like in linear regression? For example, if we were looking at the price of a car with price being dependent and mpg being independent, we can find that for every unit increase in mpg, a car's price goes up by $100. Is there a similar way to find the coefficients from our KNN model like we can with models like linear regression?
@reddaiahbn9154
@reddaiahbn9154 5 лет назад
Hi The video is very nice about KNN. I have one question here: to find the optimum k value is it sqrt (y_test) or sqrt (y) sqrt (y_test)? Thanks in advance...
@reddaiahbn9154
@reddaiahbn9154 5 лет назад
also in some part of video you mentioned k = sqrt (n) , where n is total number of data points ?
@SimplilearnOfficial
@SimplilearnOfficial 5 лет назад
Yes, "n" represents the number of data points and not the features.
@SimplilearnOfficial
@SimplilearnOfficial 5 лет назад
You can use sqrt(y_test) to find the most appropriate value for k or try using the elbow method.
@jjoshua95
@jjoshua95 4 года назад
For choosing k, we are taking sqrt(n). what if the data points are 1000 the sqrt(1000) approx 31. Allocating k=31 is too much for the resources. Any other suggestions on this?
@nandalala7915
@nandalala7915 4 года назад
github.com/plotly/datasets/blob/master/diabetes.csv Link for the above csv file.
@SimplilearnOfficial
@SimplilearnOfficial 4 года назад
Thanks for sharing the dataset. Do subscribe to our channel and stay tuned for more. Cheers!
@diveshkanojia6849
@diveshkanojia6849 5 лет назад
What is f1_score? is it a false positive score? let say 13+15/94+13+15+32 ?
@SimplilearnOfficial
@SimplilearnOfficial 5 лет назад
F1 score calculates the weighted average of the precision and recall, where an F1 score reaches its best value at 1 and worst score at 0. The formula is: F1 = 2 * (precision * recall) / (precision + recall)
@roseb2105
@roseb2105 5 лет назад
do we calculate Euclidean distance of each data point to the new (unclassified) data point to find which points are closest?
@CyborgGaming99
@CyborgGaming99 5 лет назад
That's right
@SimplilearnOfficial
@SimplilearnOfficial 5 лет назад
Yes, the algorithm implicitly calculates the Euclidian distance.
@ravishankargodha8518
@ravishankargodha8518 4 года назад
Great Explanation ,please provide github link for source code
@SimplilearnOfficial
@SimplilearnOfficial 4 года назад
Hello Murali, thanks for viewing our tutorial and we hope it is helpful. It would be helpful if you will provide your email ID to us so that we could send the requested dataset promptly.
@SaddamShaikh-my6bk
@SaddamShaikh-my6bk 6 лет назад
sir we have train the model which will predict the outcome ..but what will be procedure to predict the outcome if we are taking input from user and based on input from user we have to predict the output
@shaurybaranwal5414
@shaurybaranwal5414 6 лет назад
You would having to save the model first, and then use this saved model to predict results on the user input. One thing you have to be careful is to preprocess the user input in the same way as the data is trained.
@SimplilearnOfficial
@SimplilearnOfficial 5 лет назад
Taking input from the user will also follow the same process. After you have built you model using the training dataset, provide you own test dataset in a csv file to predict how well the is the model performing.
@surbhiagrawal3951
@surbhiagrawal3951 4 года назад
Here the p is not that we are predicting person is diabteic or not .. it is used becuase of euclidean distance formula..if we use manhattan, then p will be equal to 1
@SimplilearnOfficial
@SimplilearnOfficial 4 года назад
Thanks for sharing the information. Do subscribe to our channel and stay tuned for more. Cheers!
@yeanyean5248
@yeanyean5248 5 лет назад
Thanks for the video! simple yet detail explanation!
@SimplilearnOfficial
@SimplilearnOfficial 5 лет назад
Hey, thank you for appreciating our work. We are glad to have helped. Do check out our other tutorial videos and subscribe to us to stay connected. Cheers :)
@jamessullenriot
@jamessullenriot 3 года назад
once you prep the data the actual lines of code are quite easy ..... welcome to data science where you make a lot of cash to "massage" data
@SimplilearnOfficial
@SimplilearnOfficial 3 года назад
Thanks for watching our video and sharing your thoughts. Do subscribe to our channel and stay tuned for more. Cheers!
@MuhammadBilal-lo9pe
@MuhammadBilal-lo9pe 5 лет назад
In the real world if we get a list of 100 random people and based on our model we want to see if they have diabetes or not, how can we check that? Thanks.
@SimplilearnOfficial
@SimplilearnOfficial 5 лет назад
Hi Muhammad, you can pass any random sample of data to any machine learning algorithm in the validation step. This will give you the predicted values of the random sample.
@MyTube6686
@MyTube6686 4 года назад
So if we put the value of K=7 and we have 1 million data point, then how will the algorithm decide to which 7 data points this new data point will be compared ?
@trinathsahu8939
@trinathsahu8939 5 лет назад
U used test data to calculate k value. But we r fitting the model using train data. So, is it correct to use test data instead of train data for k value calculation. Plssss suggest..thx in advance.
@srinivasreddy6836
@srinivasreddy6836 4 года назад
facing problem while doing replacing zeroes to mean... error is 'int' object is not subscriptable
@mahdiislam869
@mahdiislam869 3 года назад
Can I please get the dataset
@SimplilearnOfficial
@SimplilearnOfficial 3 года назад
Hello, thanks for viewing our tutorial. It would be helpful if you will provide your email ID to us so that we can send the requested dataset promptly. On the off chance that you need your email ID to be kept hidden from others, we can do that too. Hope that helps.
@mahdiislam869
@mahdiislam869 3 года назад
@@SimplilearnOfficial ​ I want to keep my email hidden.
@lavneetsharma7092
@lavneetsharma7092 5 лет назад
I would like to subscribe/enrol for more videos from the same tutor! Please advice.
@SimplilearnOfficial
@SimplilearnOfficial 5 лет назад
Glad you enjoyed our video! We have a ton more videos like this on ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-6M5VXKLf4D4.html. We hope you will join our community by subscribing to our channel!
@msctube45
@msctube45 4 года назад
Thank you for this illustrative and informative video. Excellent job explaining KNN and a practical real life Python application example.
@SimplilearnOfficial
@SimplilearnOfficial 4 года назад
WooHoo! We are so happy you love our videos. Please do keep checking back in. We put up new videos every week on all your favorite topics. Whenever you have the time, you must also check out our blog page @simplilearn.com and tell us what you think. Have a good day!
@BRIJESHKUMAR-zq4rt
@BRIJESHKUMAR-zq4rt 4 года назад
Thanks a lot for explaining very clearly.
@SimplilearnOfficial
@SimplilearnOfficial 4 года назад
Glad it was helpful!
@nileshkumarJadav
@nileshkumarJadav 4 года назад
What p=2 will do in classifier variable ?
@SimplilearnOfficial
@SimplilearnOfficial 4 года назад
Hi Nilesh, KNN uses the parameter called metric. The default metric is minkowski, and p=2 is equivalent to the standard Euclidean metric.
@elastvd7503
@elastvd7503 3 года назад
Thank you !
@SimplilearnOfficial
@SimplilearnOfficial 3 года назад
You're welcome!
@antonnygatua
@antonnygatua 5 лет назад
The video is very awesome , how would I get the diabetes data set for practice?
@SimplilearnOfficial
@SimplilearnOfficial 5 лет назад
Hello Antonny, thanks for viewing our tutorial. It would be helpful if you will provide your email ID to us so that we could send the requested dataset promptly. On the off chance that you need your email ID to be kept hidden from others, we can do that also. Hope that helps.
@omkars764
@omkars764 4 года назад
omg thank you for explaining the code
@SimplilearnOfficial
@SimplilearnOfficial 4 года назад
You are welcome! Do subscribe to our channel and stay tuned.
@innocent.amchechesi276
@innocent.amchechesi276 3 года назад
Thank you
@SimplilearnOfficial
@SimplilearnOfficial 3 года назад
You're welcome
@ayondebnath8145
@ayondebnath8145 2 года назад
Thank you so much for such wonderful tutorial ! Can't express how grateful I am for this. Everything is very nicely explained.
@SimplilearnOfficial
@SimplilearnOfficial 2 года назад
Hey, thank you for appreciating our work. We are glad to have helped. Do check out our other tutorial videos and subscribe to us to stay connected. Cheers :)
@RahulYadav-uo2hz
@RahulYadav-uo2hz 3 года назад
simplibest
@SimplilearnOfficial
@SimplilearnOfficial 3 года назад
Thank you for the appreciation. You can check our videos related to various technologies and subscribe to our channel to stay updated with all the trending technologies.
@Lovedaramusic
@Lovedaramusic 6 лет назад
Why do we select only a sqrt(total number of training data) for casting votes?
@SimplilearnOfficial
@SimplilearnOfficial 5 лет назад
That is the recommended approach to take the square root of the total number of rows. Hope that helps!
@lasindunuwanga5292
@lasindunuwanga5292 Год назад
nice
@SimplilearnOfficial
@SimplilearnOfficial Год назад
Thank you for choosing us as your learning partner. We are thrilled to hear that you enjoyed your experience with us! If you are looking to expand your knowledge further, we invite you to explore our other courses in the description box.
@dianacarvalhomonteiro3347
@dianacarvalhomonteiro3347 3 года назад
what an amazing video , thank you!
@SimplilearnOfficial
@SimplilearnOfficial 3 года назад
You're so welcome!
@nmana9759
@nmana9759 4 года назад
i hope you could make the video better by plotting the data next time
@SimplilearnOfficial
@SimplilearnOfficial 4 года назад
Hey Fisal, thank you for watching our video. We will definitely look into your suggestions. Do subscribe and stay tuned for updates on our channel. Cheers :)
@delefakayode6176
@delefakayode6176 2 года назад
Great
@SimplilearnOfficial
@SimplilearnOfficial 2 года назад
Keep learning with us .Stay connected with our channel and team :) . Do subscribe the channel for more updates : )
@Aaziz96
@Aaziz96 6 лет назад
I am just still a little confused because you didn't quite explain why you chose 3 for k. Could you explain it a little more please.
@Aaziz96
@Aaziz96 6 лет назад
I'm assuming that you chose the lowest ones?
@SimplilearnOfficial
@SimplilearnOfficial 6 лет назад
Hi Abdul, thanks for watching our tutorial. We chose k=3 because we have n=9 and the square root of 9 = 3 in the given example. Hence, we have taken k=3. Hope that helps!
@prasunsukai139
@prasunsukai139 4 года назад
What is the difference between fit_transform() and transform()
@simanchalpatnaik2566
@simanchalpatnaik2566 4 года назад
Nice tutorial. How you have selected the list item for zero_not_accepted? Why the "Age" column is not taken for the list item?
@Ebube_dee
@Ebube_dee Год назад
im having reshape errors when i run the standard scaler, how do i resolve it
@aksontv
@aksontv 5 лет назад
CLEAR VIDEO! Dataset plz
@SimplilearnOfficial
@SimplilearnOfficial 5 лет назад
We are glad you found our video helpful, Muhammad. It would be helpful if you will provide your email ID to us so that we could send the requested dataset promptly. On the off chance that you need your email ID to be kept hidden from others, we can do that also. Hope that helps.
Далее
How I’d learn ML in 2024 (if I could start over)
7:05
Дикий Бармалей разозлил всех!
01:00
ХОККЕЙНАЯ КЛЮШКА ИЗ БУДУЩЕГО?
00:29
How to implement KNN from scratch with Python
9:24
Просмотров 89 тыс.
I used to hate QR codes. But they're actually genius
35:13
StatQuest: K-nearest neighbors, Clearly Explained
5:30
ML Was Hard Until I Learned These 5 Secrets!
13:11
Просмотров 309 тыс.
How I'd Learn AI (If I Had to Start Over)
15:04
Просмотров 810 тыс.