Check out our premium machine learning course with 2 Industry projects: codebasics.io/courses/machine-learning-for-data-science-beginners-to-advanced
@vitaltopics3162 жыл бұрын
why do we not need to use centroids for the iris dataset?
@arrahman1005 жыл бұрын
You make Machine Learning so easy to understand. I would say you are a SAVER for the people who are struggling to understand different ML algorithums. Thank you so much. please if possible put some content on NLP.
@hshrestha28114 жыл бұрын
Summarizing the algorithm for K Means clustering based on this video: 1. Start with k centroids by putting them at random points here k =2 2. Compute distance of every point from centroid and cluster them accordingly 3. Adjust centroid so they become center of gravity of given cluster 4. Again recluster every point based on distance with adjusted centroid 5. Reiterate until data points stop changing cluster 6. Again adjust centroids
@adipurnomo56833 жыл бұрын
Noted!
@fun_stuff_and_games Жыл бұрын
7. done and put the ruler away
@ganeshn946411 ай бұрын
Please correct me if I am wrong - 2. Compute distance of every point from centroid and cluster them accordingly - This entire process is "built" inside the KMeans.fit_predict(). Correct ?
@ZlogsUK26 күн бұрын
its easy to undersytand theory implementations trickyu
@shauryabhatnagar714 жыл бұрын
You are probably one of the best teachers I have come across. Thank you so much!
@AltafAnsari-tf9nl4 жыл бұрын
I have started loving machine learning due to the simplicity of explanations.
@wyphonema40244 жыл бұрын
my grad school professor explains this very badly. You explain things very well with patience, you are the definition of a good teacher
@codebasics4 жыл бұрын
glad you liked it :)
@aliouahli31852 жыл бұрын
you can't find a video and not watch all playlists , im so grateful to you , thank you sir!
@qas42734 жыл бұрын
It's a blessing to be able to finally say that I can learn ML, thanks to you :). I have used 'HUE' from seaborn instead of writing plt.scatter for every group of the cluster. sns.scatterplot(df['Age'], df['Income($)'], hue = df['Cluster'])
@manishsharma22114 жыл бұрын
Thanks for this 👍
@codebasics5 ай бұрын
Yes, with seaborn you can do it in one line. Thanks for posting this comment 🙏🏼🙏🏼
@manjulakalmath459113 күн бұрын
Really it is invaluable and unconditional service
@Rus1310CMRS Жыл бұрын
I looked 5 min at start, and your teaching style for ML is spot on, better than the IIT professors. I am enjoying ML algo now. Thanks.
@Kingsohio3 жыл бұрын
This is a great quick refresher for those with the basic knowledge of ML clustering algorithms
@nilupulperera4 жыл бұрын
What a beautiful explanation. The beauty of Data Science is shown in this video in a remarkable way. The exercise is really beautiful! Thank you very much, Sir.
@codebasics4 жыл бұрын
Dear Nilpul, Thanks for the comment. Keep learning. 😂
@beansgoya5 жыл бұрын
Fantastic explanation. I like the way you showed us what happens if you don’t scale your features. You also waited for the perfect opportunity to show why we need to use the elbow method.
@codebasics5 жыл бұрын
Thanks for your feedback kin. 👍😊 Feedback like this helps me continue do the good things and also any critical feedback is welcome as well as it helps me improve 👍
@raom21273 жыл бұрын
All ML series Iam following, Iam following to your vedios nicely explained you explaination ans approach is awasome now I stopped seeing all news social media network just following up your vedios only.....your vedios has magentic power........................
@amilcarc.dasilva56655 жыл бұрын
Excellent tutorial. This is highly recommended to watch. Thanks a lot Sir, I find it helpful in my project work....I really appreciate. You have done great work to help others. Keep up doing this great work.
@praveenjagarlapudi78912 жыл бұрын
I have got the real clarity after watching your video, This is a great help. Thank you for all the videos.
@cindinishimoto95284 жыл бұрын
All the ML series is so exciting. I'm learning and having fun during the quarantine in Brazil, SP. Thanks, @codebasics
@NikitaSharma-bs4gg2 жыл бұрын
I searched for 3-4 days and I only got the plotting after seeing your video- Thanks a lot
@maruthiprasad81842 жыл бұрын
Optimal value for iris data set got 3. Thank you very much for simple & great explanation.
@slainiae9 ай бұрын
K Value: 3 Before scaling accuracy: 96% After scaling accuracy: 96% Twice the error occurred for the same row and four times the errors were different between the scaled and unscaled datasets.
@andreabrunelli20303 жыл бұрын
Dear CodeBasics, your tutorials are way better than all the classes of the Master in AI I have just completed. Thank you very much!
@codebasics3 жыл бұрын
Glad it helped you 😊
@akshrags-mindmaze3407 Жыл бұрын
7:25 Brilliant Explaination!
@bhaskarg84382 жыл бұрын
your explanation is clear and clarity in the content.. and knowledge sharing to needed Data Science community is Nobel... thankyou... 🙏
@shivamtyagi56144 жыл бұрын
Exercise done. viewing the initial plot n_clusters seems equal to 2, bt using ellbow method clears it to use n_clusters =3,,,,,Enjoying this holiday!!!!!!!!!!
@commercial3750 Жыл бұрын
This was awesome! I can't believe I learned how to do K-means clustering in just a few hours. Your explanations are clear and concise. Thank you so much!
@codebasics Жыл бұрын
Glad it was helpful!
@sidduhedaginal4 жыл бұрын
Sir, you made Machine Learners life easy....amazing explanation that ever seen before and by Elbow technique we got K=3 for iris dateset.
@codebasics4 жыл бұрын
Thanks for you kind words and I am happy you liked it 😊
@shubhangiagrawal3364 жыл бұрын
@@codebasics Sir can you please make one video on knn algorithm? I need it so badly. Thankyou
@jayagrawal348110 ай бұрын
really liking the course i cant believe i already watched more than 50 videos from a playlist only 50 more to go
@shubhamwaingade41443 жыл бұрын
It was good, simple, informative, no errors. I guess these are enough clusters to define the quality of this video.
@meghnasachdeva31744 жыл бұрын
the way yoy explain is commendable making it so easy even fote beginners....thankyou so much for your efforts sir..really
@codebasics4 жыл бұрын
👍😊🙏
@doyoonkim41872 жыл бұрын
The best ML lesson I've ever heard
@Mukeshsingh-zn9rq4 жыл бұрын
was trying out tons of videos trying to understand the basics of ML, you made it so simple and quick. Loved it!!
@codebasics4 жыл бұрын
😊👍
@heaven32793 жыл бұрын
Excellent quick and short explanation of K-means. Appreciate it
@codebasics3 жыл бұрын
Glad it was helpful!
@praveensevenhills Жыл бұрын
great explanation taking from a small example and going in elaborative way covering whole concept in a nutshell very well explained
@prakashdahal25605 жыл бұрын
One of the most useful tutorial I have ever seen
@codebasics5 жыл бұрын
🤓👍
@tejas4054 Жыл бұрын
This is best video of all ml videos on youtube
@fahadabdullah5102 жыл бұрын
I tried the exercise and the insights i find are: 1 -> I scatter the plots and i thought that 2 k's would be enough. 2 -> Without using any kind of scaling initially i found that my scatter plots for 2 clusters were not good enough. 3 -> I tried to scale with MinMaxScaler and StandardScaler but both seem to give the same result. 4 -> I used the elbow method and found that the optimal value for k will be 3. 5 -> I applied k = 3 and got the result.
@flyingsalmon2 жыл бұрын
Fantastic coverage...you covered the basics, then talked about the reasons and potential challenge with real-world data, and showed some amazing methods to visualize differently. Thank you for your continued contribution to learning and sharing with the community. This kind of tutorials is what will make newcomers gravitate toward ML and be glad to learn.
@codebasics2 жыл бұрын
Glad you enjoyed it!
@flyingsalmon2 жыл бұрын
@@codebasics Absolutely. I do have a follow-up question. I got lost after scaling the values...let me explain. I have a dataset of tips($) and total restaurant bill($) per day per group of customers. I got 3 clusters and they look good after rescaling the bill and tips via MinMax (my x-axis is the bill for food, and y-axis is tips $). But after clustering, I can't tell how to map the x-axis and y-axis rescaled values (which are 0..1 floats) to actual dollar values that are in the dataset. I need to know how the clusters map to real dataset. Is there a way to do that logically? Would really appreciate your input. TY!
@jiatianbu67613 жыл бұрын
Make Machine Learning so easy to understand. Thx
@skyblue0213 жыл бұрын
This is the best-explained K-means on the internet - period. Thank you!
@codebasics3 жыл бұрын
Glad it was helpful!
@santetzuken89034 жыл бұрын
These videos are more helpful than all of the classes I took in my university combined.
@codebasics4 жыл бұрын
I am happy this was helpful to you.
@Saikumer-g4p7 ай бұрын
Awesome explanation from you sir,I think this is best tutorial for k means clusters in the youtube . I tried seen lot of videos in the KZbin regrading on the this topic . But this video give me some boost to create the amazing the model in ml tq for all this sir . My feedback is : you shoud give the some more example on topics that will be help to us to make beautiful things from this
@spacetimevideostudio1092 жыл бұрын
Thank you so much Dhaval for this video, with my elbow technique I got k=3. Thanks
@namansinghal90904 жыл бұрын
I must say!! you are making life alot easier for all of us!!! Thanks a lot mannn.. Your efforts are really appreciated. Keep up hard work.
@-NagumantryRaghuveer2 жыл бұрын
best tutorials for Machine learning
@ousmanealamakaba31352 жыл бұрын
you are very strong .thank you so much for making this class easy
@poojabehera86754 жыл бұрын
Thank you so so much for making Machine learning so easy to understand by the series sir. The more i look for any ML content of yours, the more i wish to go on for the entire series with such clear understanding. with passion for the subject & curiosity to search had been gone through so many tutorials so far but codebasics is the best learning source for beginners like me and would definitely recommend this to freshers/ beginners for a clear base understanding for data science.... MUCH APPRECIATE
@codebasics4 жыл бұрын
Thanks Pooja for your kind words. This means a lot to me and gives me a fuel to continue my work. If you like my videos would you share this series and deep learning series on your facebook page, linked in or watsapp? That way maximum people can benefit from it.
@sajjadkhan-oc2bk3 жыл бұрын
@@codebasics Thanks for your efforts! Stay blessed...
@mohankrishna16802 жыл бұрын
huge respect to your hardwork , vedios increasing learning curiosity 👏👏👏👏
@abhishek49853 жыл бұрын
Saw so many videos, but this one video helped the most. Thanks!
@codebasics3 жыл бұрын
Glad it helped!
@pandaparas85005 жыл бұрын
You make every topic so easy to understand. Long time no video, we miss your videos. Please upload video regularly. Once again good to see your videos. Thank u
@codebasics5 жыл бұрын
Panda, thanks for your appreciation. I am going through some health issues and that's the reason not able to upload the content on regular basis. I will start uploading once I recover... 🙂
@pandaparas85005 жыл бұрын
@@codebasics oh sorry i m not aware of it.Its ok. Take your time and concentrate on full health recovery . Get well soon sir. Take care. Once again thank u for everything 😊
@LamNguyen-nm1id2 жыл бұрын
both StandardScaler and MinMaxScaler worked for petal perfectly. The elbow had me at 2 and 3 but 3 seems to have a better variance than 2 upon plotting it in a scatter graph
@sushiltry3 жыл бұрын
Superb explanation but I feel elbow plot is to be drawn initially so it is more clear about K
@henyermogollon6792 жыл бұрын
God bless you. You are ML Guru! I love your content. very easy to understand the basics of everything.
@saratbabum13034 жыл бұрын
Nice way of explaining the complicated concept with an example. Great Job !!! Thanks a lot
@zainishah55403 жыл бұрын
Oh man just wow wow wow. You made my day what a lesson it was. Absolutely you nailed it
@Sheblah1 Жыл бұрын
this is a perfect introduction to k-means thank you for making this video👌
@codebasics Жыл бұрын
Glad you liked it!
@thaanathaana452210 ай бұрын
Really useful videos .. i got too many doubts in machine learning.. came up with one video became a subscriber now .. thanks brother for clear explanation
@shashankkkk3 жыл бұрын
man you shouldn't have put these playlists on youtube for free... these are gems... people should pay to learn these gems for at least some small amount.. You are awesome sir ... The things which I wasn't able to learn you taught me in that... hats off sir... hope we will meet one day
@codebasics3 жыл бұрын
Thanks for your appreciation, sure when I am in India I will plan for a Meetup
@bumohamed624 Жыл бұрын
This material is brilliant, divided into theory , tutorial and exercise however I would suggest to focus on the objective which is providing solution for the problem and predict characteristic by using age and income . The predication accuracy was not been shown and do we achieve to predict correctly or not , was totally grayed end of the video . I would like to receive your further elaboration on the objective as after such effort there should be solution ,please communicate
@pulkitgupta19465 жыл бұрын
sir bas aap please video upload karte rehna . aapki videos se bahut help milti hai
@codebasics5 жыл бұрын
Sure pulkit. Me koshish yahi karunga ke jyada se jyada achhe video produce karta rahu on machine learning.
@pulkitgupta19465 жыл бұрын
Thanks
@adisaolaitan54755 жыл бұрын
Thanks so much for your easy-to-understand tutorials. You are a blessing. God bless you!
@liliyalopez89982 жыл бұрын
I love how you explained the material in plain language. You made it very easy to follow and understand ❤
@igorbuzov37784 жыл бұрын
Going to university, studying, learning, reading from books And then you find some random guy form (I assume India) who exlans it in simple way.in less than 30 minutes... Respect!
@codebasics4 жыл бұрын
I am glad Igor that this was helpful to you 😊👍
@Mushsayer3 жыл бұрын
Thanks a lot for the video. You taught the K-Means Clustering in 10 mins!
@codebasics3 жыл бұрын
👍☺️
@thirugnanamselvam23045 жыл бұрын
All your videos are clear and good. Congrats for that. Can you please make a video for recommender systems and NLP
@codebasics5 жыл бұрын
Thanks thirugnanam, point noted!
@kmnm94634 жыл бұрын
Hi Dhaval ji - excellent video on KMC. Very precise in presenting, Particularly liked the cluster_centers_ and inertia_ concepts. The final elbow plot with for loop being the starting point was unparalleled in clarity. Thanks a lot
@codebasics4 жыл бұрын
Thanks a ton
@sufyanhamid95605 жыл бұрын
It is very helpful to understand the working of algorithms and code also,I wish to learn your complete series of m.l.
@codebasics5 жыл бұрын
Sufiyan I am glad you liked it. I am going to add many more tutorials in ML series. Stay tuned buddy 😎
@86Plum4 жыл бұрын
Amazing video and explanantion! Just started learning about Machine Learning algorithms and this is incredibly helpful. Thank you!
@sunilsharanappa77214 жыл бұрын
You are awesome, you make the complex things simplified.Please keep up the good work.
@codebasics4 жыл бұрын
Thanks, will do!
@AlonAvramson3 жыл бұрын
Thank you! really enjoyed this session. I tried both Petal and Sepal and it went very well.
@codebasics3 жыл бұрын
Glad you enjoyed it!
@prasannavi19115 жыл бұрын
You are awesome. You made me think ML is not complex to learn.
@codebasics5 жыл бұрын
Indeed, ML is not as complex as people think it is !
@prasannavi19115 жыл бұрын
codebasics thank you. Post more videos your way to explaining things well understood.
@sharathkrishnan15584 жыл бұрын
Excellent, amazing . You make it so easy. Thank you sir
@bishwadeepsikder3018 Жыл бұрын
The best explanation ever... Thank you so much
@AntonioGarcia-ck5hy2 жыл бұрын
Thanks a lot for the tutorial video, @codebasics. You are an excellent teacher.
@shantanuraj70863 жыл бұрын
Amazing video. Creative, resourceful and excellent preparation. Keep posting more such videos.
@techienomadiso89703 жыл бұрын
Wow. You are a great man. You've made it soo simple to understand. Thank you Sir. 🔥🔥🔥
@codebasics3 жыл бұрын
Glad you enjoyed it
@amitblizer4567 Жыл бұрын
Very clearly explained video! Thank u very much!
@neerajkulhari3964 Жыл бұрын
Wow.. What a nice explanation! Thank you for such a nice video
@amrelkholy66623 жыл бұрын
you are amazing, I like your simplicity in delivering the information, thank you very much
@codebasics3 жыл бұрын
Glad it was helpful!
@suhaalam21272 жыл бұрын
Thank you so much for such well explained tutorials.
@mapa5000 Жыл бұрын
Outstanding explanation my friend !! Thank you from Houston
@codebasics Жыл бұрын
👍👍😇
@zerostudy75085 жыл бұрын
Cool other one to my list... i love cluster Mr. @codebasics in Exercise well i also found that we can (km.predict([[7,3]])), for which cluster category label of petal length =7 and petal width= 3 but labels of clusters gave is not constant, some time they give clusters as unique labels [0 1 2] or [2 0 1] but still the same clustering though only different Labels name but same result.
@jackthomson13363 жыл бұрын
Good classes and good approach
@anmoldeep01239 ай бұрын
What a fantastic way to expain this algorithm ? What are the practical usecases of this algo ?
@R3NAN32244 жыл бұрын
If you have more than 2 atributes use.. df([[ 'name', 'example]] >X ,[[ 'name', 'example]] >Y )
@paulcurious23243 жыл бұрын
i dont get this please could you explain in detail
@R3NAN32243 жыл бұрын
@@paulcurious2324 @Paul Curious hi, if you have 3 atributes.. For example: color, leaf type and flower. You need make a code using 3 separated arrays.. Inside df( [ [ 'color','green'] ],[ [ 'Leaf','small'] ] ,[ ['flower','white']] )
@paulcurious23243 жыл бұрын
@@R3NAN3224 it says df is not a callable when i do that
@paulcurious23243 жыл бұрын
@@R3NAN3224 can u send a link to an example, maybe github or repl
@R3NAN32243 жыл бұрын
@@paulcurious2324 see in 8:00 ... df is a name associate of your database. Paste your code here to i see you database name.
@visakhv18055 жыл бұрын
Hope your health is fine now. When you get time, please include some contents on Principal Component Analysis. Thank you very much for your great effort.
@codebasics5 жыл бұрын
Hey visakh, PCA is in my Todo list. So sure I will make tutorial on that in future
@jayshreedonga28332 жыл бұрын
thanks your method of teaching is really nice thanks a lot
@atifmalayalam40076 ай бұрын
Very clear. Thanks!
@AjaySharma-jv6qn2 жыл бұрын
You make things quite simple. Please keep posting..
@mayaahmed17 күн бұрын
From the elbow graph k can be 2 or 3. Which is better? I liked k=2. Great explanation. Thanks for your video.
@rithikaraj46872 жыл бұрын
Excellent tutorial sir. Thank you soo much.
@simranthiara66163 жыл бұрын
Best channel for explanations on ML algorithms. Thank you so much :) , definitely subscribed .
@codebasics3 жыл бұрын
Thanks and welcome
@kalyankrishna59024 жыл бұрын
Sir plz upload KNN algorithm video I followed your videos and learned so much of knowledge from ur videos.....tq very much sir
@bugBusters11922 жыл бұрын
Really must appreciate the playlist 😌
@aviralgupta93644 жыл бұрын
Fantastic tutorial !!! .Thanks a lot sir ... It gives best explanation
@liqin389212 күн бұрын
Thank you, what an enjoyable lesson
@ahmedadnanaziz2005 Жыл бұрын
what a great explanation , thanks teacher
@rakeshmurali23423 жыл бұрын
Beautiful! Superbly explained!
@codebasics3 жыл бұрын
Glad you liked it!
@abhijitmalode31894 жыл бұрын
thank u so much sir for this ml video it clearly understood by everyone , it clear my all doubt
@engineerpython48123 жыл бұрын
I have solved the iris dataset exercise . I have k=3 and plot elbow very easily.
@beansgoya5 жыл бұрын
not sure if anyone else had this problem but at 16:00, i had to add an extra set of brackets when i did this exercise. maybe my python is outdated or something. scaler = MinMaxScaler() scaler.fit(df[['Income($)']]) df['Income($)'] = scaler.transform(df[['Income($)']]) df
@codebasics5 жыл бұрын
Kin, what you are doing is correct. In tutorial I got warning but ignored it but yea it takes 2D array as input. Here is my correct code: github.com/codebasics/py/blob/master/ML/13_kmeans/13_kmeans_tutorial.ipynb