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

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 พ.ย. 2024

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

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

    "🔥Caltech Post Graduate Program In AI And Machine Learning - www.simplilearn.com/artificial-intelligence-masters-program-training-course?HKqjENq9OU&Comments&TH-cam
    🔥IITK - Professional Certificate Course in Generative AI and Machine Learning (India Only) - www.simplilearn.com/iitk-professional-certificate-course-ai-machine-learning?HKqjENq9OU&Comments&TH-cam
    🔥Purdue - Post Graduate Program in AI and Machine Learning - www.simplilearn.com/pgp-ai-machine-learning-certification-training-course?HKqjENq9OU&Comments&TH-cam
    🔥IITG - Professional Certificate Program in Generative AI and Machine Learning (India Only) - www.simplilearn.com/iitg-generative-ai-machine-learning-program?HKqjENq9OU&Comments&TH-cam
    🔥Caltech - AI & Machine Learning Bootcamp (US Only) - www.simplilearn.com/ai-machine-learning-bootcamp?HKqjENq9OU&Comments&TH-cam"

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

    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.

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

    I've been trying to understand this for weeks and you've summed it up in the first 2 minutes. Light bulb moment!

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

    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.

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

    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.

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

    These tutorials are easy to understand and informative compared to other videos😌Thanks:)

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

    My uni teacher made knn sucha scary thing to me... thanks God i found this vid...i m in love with knn now

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

    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 ปีที่แล้ว +2

      Keep learning with us .Stay connected with our channel and team :) . Do subscribe the channel for more updates : )

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

    I really really love how you broke down the topic and able to pass across all valuable information in a short while. Thank you

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

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

    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)

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

    I'm totally new to any machine learning or programming stuff, and tbh I was super scared about learning -'K-NN algorithm' because the word 'algorithm' already sounded scary enough. However, your analogy of "Cats or dogs" and "claws and ears" REALLY MADE A LOT OF SENSE! If I have to lecture my own class about machine learning someday for other beginners, I think your "cat and dog" analogy of explanation cannot be more simpler. Thanks for the great video!

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

      Glad you enjoyed our video! We have a ton more videos like this on our channel. We hope you will join our community!

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

    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

  • @ernestanonde3218
    @ernestanonde3218 2 ปีที่แล้ว +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!

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

    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

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

    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 : )

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

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

  • @ghafoury
    @ghafoury 3 ปีที่แล้ว +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 :)

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

    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 ปีที่แล้ว +2

      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)

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

    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 :)

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

    whats a confusion matrix?

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

      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.

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

    This is really simple as the name of the channel suggests, thanks

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

    I found this fascinating. Wish machine learning/data analysis was around when I was doing my CS masters degree. Lots of spare time to learn in retirement. Great video, and I loved the Python even more. I’ve always found the correct working code to be the true documentation.

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

    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!!

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

    This is the best explanation I have seen so far. Thank you.

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

    best tutorial of KNN i've ever watched. It helps me a lot

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

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

    One of the best explanations I have come across, thank you so much!

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

    Before replacing the zero's by the mean in the columns you can first test is there is NanN in the data, if there is not you dont need the first line in the for loop I guess,
    data[column]=data[column].replace(0,NanN).

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

      A simple command is: dataset.isnull().sum()

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

    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!

  • @D-Ratz
    @D-Ratz 2 ปีที่แล้ว +1

    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!

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

    Wonderful explaination of the code which many of the other channels lack in their videos. THank you so much for explaining each step...

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

      Hey Abhishek, 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 :)

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

    Two Questions:
    1. How do you embed a KNN model into a real application?
    2. If you train a model on scaled data, how do you implement the resulting model to any platform for real use?
    Thanks,

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

      "Hey, we hope you enjoyed this video! If you want to learn more, you can check out this linl: www.simplilearn.com/tutorials/machine-learning-tutorial/knn-in-python
      And don't forget to like, share and subscribe to our channel! :)"

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

    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 :)

  • @tudorradu5848
    @tudorradu5848 9 หลายเดือนก่อน +2

    Great tutorial. Thank you!

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

    Amazing video. I'm learning data science and this helps a lot!

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

    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 :)

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

    UBER helpful - well set up and well explained - THANK U

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

    Very good video easy way to understand.

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

    Thank you for such great explanation !!!

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

    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!

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

    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!

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

    This video really helped my overall understanding of KNN and refreshed my understanding of the euclidean distance formula. Subscribed!

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

      Hey Aaron, thank you for appreciating our work. We are glad to have helped. We are happy to receive a new subscriber and we hope you are loving our community. We put up new videos on all important topics, so stay tuned. Cheers!

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

    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

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

    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 :)

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

    Brief and very clear! Thanks!

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

      Hey Denis, 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 :)

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

    Very nice explanation!!

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

    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!

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

    Good video. Clearly explained all the concept and Diabetes example is neat! Thanks!

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

      Hey Aditya, 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 :)

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

    what an amazing video , thank you!

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

    Replace directly 0 with mean … callus you please let me know the reason to replace 0 with nan values ?

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

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

    This was really good compared to others, thanks i'll keep looking for more. Cheers!

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

    Wow, your way of explaining and your didactic examples and materials are simply awesome!!. You got a new subscriber. Thank you, and please keep posting your amazing work.

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

    great video. Can you please explain what should be the F score. Should we aim for higher F score similar to accuracy?

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

      Hi Hemachandran, the F1 score is the average of precision and recall. Thank you for watching!

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

    superb explanation

  • @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 ปีที่แล้ว +1

      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:
      th-cam.com/video/prWyZhcktn4/w-d-xo.html
      Thank you for watching!

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

    Simple and efficient, thumbs up

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

    Thanks! A simple but very good turorial!

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

      Hey Madhvapathi, thank you for appreciating our work. We are glad that you liked our video. Do subscribe and stay connected with us. Cheers :)

  • @BRIJESHKUMAR-zq4rt
    @BRIJESHKUMAR-zq4rt 4 ปีที่แล้ว +1

    Thanks a lot for explaining very clearly.

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

    This is so amazing, thank you 😊

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

    This is such a great tutorial! Thank you so much!

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

      We are glad you found our video helpful, Scott. 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!

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

    Amazing video, everything I expected was there, thank you.

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

    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.

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

    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!

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

    Ninteen minutes from this vdieo and this is magnificent love your teaching style keep going with more videos if you are good in math please release linear algrebra or calculs thank you

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

      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 :)

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

    Thank you very much for this informative lecture. May I ask about the Feature Selection?
    sc_X =StandardScaler()
    X_train = sc_X.fit_transform(X_train)
    X_test = sc_X.transform(X_test)
    When to use fit_transform and transform? Why is it different for the training and testing dataset?
    Will appreciate your answers. Thank you very much

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

      "fit_transform" applies both a fit (fits the scaler to the dataset) and a transform (transforms the dataset, standardizing it) over the training data. Therefore, once you apply "fit_transform", you can just apply "transform" over the test data. You can check the functions associated with StandardScaler in the following link: scikit-learn.org/stable/modules/generated/sklearn.preprocessing.StandardScaler.html
      By checking that, I had another related doubt: why not fit the scaler using the whole data (with train and test together)? I mean, it's possible that X_train has values ranging from 1 to 10 while X_test has values ranging from 1 to 20. Wouldn't it mess with the standardization?

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

      @@filipechesco I actually noted that if you apply fit_transform on both test and train data, the accuracy and f1 score slightly changes

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

    Great tutorial. Where can I get the dataset from?

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

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

    Thank you alot for your work

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

    A clear explanation for the KNN Algorithm with use case. Could you please share the data set for the practice purpose.

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

      hari.sompalli0205@gmail.com this is my mail id. Thanks in Advance.

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

      Hi Hari, thanks for watching our video. We have sent the requested dataset to your mail ID. Also, Subscribe to our channel by clicking on the bell icon for never missing another update. Cheers!

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

      Can you please email the dataset to himanshu.sheth@gmail.com Thanks in advance for the same

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

      Hi Himanshu, thanks for checking out our tutorial. We have sent the requested dataset to your mail ID. 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!

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

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

    Thank you Simplilearn team for the clear explanation. Can you please provide the dataset and the python notebook used in the video?

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

      Hello Aisha, 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.

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

    Thank You ! Best explanation with a simplistic example. Can I ask how could we improve the efficiency of the model ??

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

      Hi Redamichael,
      There are multiple methods to improve the accuracy of any model. Some of them are feature engineering, feature selection, algorithm tuning, and ensemble methods.

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

    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."

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

    Great video!!! just one question: i didnt understand what part of the video was the 'k' you chose?

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

    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())

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

    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 ปีที่แล้ว +1

      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 :)

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

    amazing video. I learned a lot and it was very clear and informative

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

    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?

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

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

    Thank you for this great course. Very well explained. I subscribe :)

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

    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.

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

    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?

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

    Amazing video, on a real life project, what would be the impact of an accuracy score of let's say 90% over an accuracy score of above 90%?

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

      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!

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

    Nice one. But it would be helpful, if once you can post the link to download the sample dataset.

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

      Hello Jai, 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.

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

      @@SimplilearnOfficial dev.jeyakumar@gmail.com, Thanks.

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

      Hi Jai, thanks for sharing your email ID. We have shared the requested dataset to your mail ID. Do check out our other tutorial videos and subscribe to us to stay connected. Cheers :)

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

    omg thank you for explaining the code

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

      You are welcome! Do subscribe to our channel and stay tuned.

  • @pranav340-p2j
    @pranav340-p2j 3 ปีที่แล้ว +1

    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

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

    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!

  • @LuisGonzalez-hy2kz
    @LuisGonzalez-hy2kz 4 ปีที่แล้ว +2

    For someone that is just hoping into Data science, this video is absolutely magnificent and loved how you go step by step on data preparation and KNN algorithm. Is there any way that I might get the dataset? Congrats for the video.

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

      Hello Luis, 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.

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

    Hi
    This video was really helpful
    Could you please share the dataset

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

      Hello Apoorva, 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.

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

    Video is awesome and cat's are better than dogs xD

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

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

    Kudos mate Wonderful Video!

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

    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?

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

    Hi, great video. After we have created the model, how do we use it to predict whether new patients would have diabetes or not? Is there some sort of execution code we need to run to load the new data and test it against the model you built?

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

    SIr, Extremely useful

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

    Really helpful video, simple examples and explanation

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

      Great that you liked the tutorial, Nealabh! If you agree that Machine Learning is a good career move, please refer to this, www.simplilearn.com/big-data-and-analytics/machine-learning-certification-training-course. Also, Subscribe to our channel by clicking on the bell icon for never missing another update. Cheers !

  • @KamleshSharma-si2rq
    @KamleshSharma-si2rq 6 ปีที่แล้ว

    one of the best tutorial ever,sir can you pls share the dataset...Thank you.

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

      Hello kamlesh, thanks for the kind comment. 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.

    • @KamleshSharma-si2rq
      @KamleshSharma-si2rq 6 ปีที่แล้ว +1

      @@SimplilearnOfficial sure kamlesh9707@gmail.com...thank you so much..

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

      Hi Kamlesh, thanks for watching our video. We have sent the requested dataset to your mail ID. Do subscribe, like and share to stay connected with us. Cheers :)

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

    cool tutorial. keep it up!

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

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

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

    Thanks a lot that's video is very useful my concept

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

      Hey Abubakar, 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 :)

  • @tejasb.8919
    @tejasb.8919 5 ปีที่แล้ว +1

    Thank you for sharing this in very A nice and clear explanation for the KNN Algorithm with use case.
    Appreciated !!

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

      Hey Tejas, 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 :)