Support Vector Machines: A Visual Explanation with Sample Python Code
Вставка
- Опубліковано 8 лип 2024
- SVMs are a popular classification technique used in data science and machine learning.
In this video, I walk through how support vector machines work in a visual way, and then go step by step through how to write a Python script to use SVMs to classify muffin and cupcake recipes.
In Part 1a, I visually define the following terms:
- Margin
- Support vectors
- Hyperplane
In Part 1b, I go through the following steps in a Jupyter Notebook:
- Import libraries (pandas, numpy, sklearn, matplotlib)
- Import data
- Prepare the data
- Fit the model
- Visualize results
- Predict a new case
In Part 2, I talk about ways to tune the model:
- Higher dimensions
- Multiple classes
- C parameter
- Kernel trick (RBF with gamma)
In Part 3, I talk about the pros and cons of SVM.
You can find all of my code and data on Github: github.com/adashofdata - Наука та технологія
What a badass way to win an argument.
Sometimes I think when sitting in class, "I must just not be that smart and these concepts are just too intense to comprehend". And then youtubers, such as yourself, make me feel much better about the same topic, in less time than sitting in class. Thanks so much for taking the time to make videos such as this to help students around the world. This stuff is so cool when it makes sense!
The first three minutes of this video helped me develop a clearer understanding of SVMs than numerous previous attempts, making clear just how simple the underlying idea is, and immediately clarifying the jargon straight up front by mapping to simple 2D language.
Anyone that can provide such a simple and mentally sticky image where many others have tried and failed has got to be worth subscribing to. Really well done. I can't wait to watch your other stuff.
That was the best tutorial I have seen on SVMs. Impressive. The slides were very well done and the explanation was simple. It's nice to see an tutorial without the math. When you start to explain the math it gets very complicated and it is easy to get lost.
Thank you!
Yes I agree~ best tutorial ever, hope I could see more tutorials. Thank you Alice
I completely agree with Tim here.
Totally agree!!!
@@ADashofData how to use examples avaliable in libsvm??
you just saved me, I was trying to understand SVM the whole day and now I get it, your explanations and examples are great
Your explanation is just the best, simple and clear; please make more tutorials and cover other topics, and thank you so much
This is the best tutorial I have ever watched on SVM. She explained everything in a simple way. It was very easy for me to understand SVM. Thanks, Alice!
This video is one of the best ML videos I've ever seen! I love how it all started with a random curiosity about classifying muffins and cupcakes, then you show us step-by-step how you actually solved this problem. Thanks so much for this tutorial.
one of the best lectures I've listened to regarding SVMs.
Just blew my mind, I've been normalizing data since I started my online data science bootcamp, but haven't really understood the concept, the first 5 minutes of your video was one of those shining light moments! Thank you Alice.
Best one I've found so far. The trick was showing me the other "roads" so I could see why they weren't best. Thanks for the resource!
Probably THE simplest way of explaining SVM..I'm glad that I stumbled upon your tutorial..thank you!
Very nicely done Alice. Wish you could do more.
I tried books, udemy and other youtube videos, but this was by far the best explanation of SVM. Thank you
For sure, the best SVM tutorial on UA-cam!!!
Thank you so much
Best explanation of SVM I've seen so far. Great job Alice!
Best intuitive tutorial I have seen yet on SVMs. Thank you for this.
Thank you, Alice. This is by far the best SVM tutorial out there!
Honestly, the best video explanation I have seen so far on SVM.
One of the best tutorials that can be found online! Really awesome analogies with the real world. It was awesome and very helpful. Thanks!
Awesome! It is a tutorial I have always wanted to watch: something that explains the workflow from scratch! Thank you!
One of the best explanations I've seen about SVMs! No doubt about it!! Thank you very much!
Genius! best SVM video I've seen so far! Being able to explain complex concepts with such simplicity is a RARE skill. We need more people like you
Alice you have the natural talent to teach, very impressive. I am waiting for your next video !
same here. such a talent. hard to wait for more from her....
Nice tutorial, my first one to understand SVM and I think it did a good job of keeping it the right amount of depth while covering the entire topic
Points that I cont understand for months, this tutorial taught me -> Widest ROAD. Thank you
This is one of the best programming/ data science tutorials I've ever seen. You're a natural teacher. I see you haven't made any videos in some time, but if you ever start teaching again know that you're changing lives!! For instance mine :)
Cup cakes to SVM depth. Amazingly genius idea . Thanks for explaining it so clear!
This is i guess the best explaination for SVM ... thanks alot from INDIA 🇮🇳
I'm new to data science and machine learning. Was looking for simple explanation covering all the basic aspect and i found this great presentation. Thank you so much !!!
Really its is the best tutorials on SVMs. Brief and sequential with focus on application oriented learning. Great.
Positive points Alice commented about 2 classes and also multiple classes. Explanation about 2D, 3D and more dimensions data were very well done. Great explanation, thank you for sharing with us.
Your video is still actual, even in 2021! Thank you a lot. I would be happy to see your videos about other methods!
This is the best tutorial on SVM that I have come across. Thanks a lot for making this!
I didn't understand SVM's before this. Now I do. Thank you.
This is the best description of SVMs....so simple
This is the best svm tutorial so far on youtube
teaching is an art and you have mastered it .
THE BEST TUTORIAL ON SVM!!!
Really appreciate it.
truely the best way... explaining SVM
My each and every Question is Answered !!! Best video on SVM on UA-cam!!
Thank you for providing the clarity on SVM
There it goes. The best video available on internet for Support vector Machines. Thanks a lot Alice.
This is amazing. Best way to explain SVM ever. Thank you so much. Hope you could come up with more tutorials like this!!!
That was the best tutorial I have seen on SVMs, thank you
Great explanation! Thank you for sharing!
very helpful for me. at first I am lost with SVM, with your tutorial, I understand it much better and with that example. thanks Ms Alice Zhao.
Wow this is tbe best tutorial on SVM I've seen. You are very clear!
Best tutorial for SVM as per now what I saw other youtube videos on SVM. It includes the best way of representation using actual code and doing analysis. Keep It up.
Excellent Slides + presentation + content + explanation. Overall A+ video. God Bless you
you're so good at explaining in laymen terms! thanks so much Alice
The best tutorial! You deserve all the praise in the world.. People might be experts in this field but for us students you're a hero the lifesaver.. Thanq :')
Best video about SVM. Thank you!!!
The best presentation on SVM
Wonderful tutorial, love the examples and visualisation!
i am a student in the field of CSE, and took some machine learning classes, but this...
Just WOOWW!
You are so good at simplifying the concepts!
Great job! Convey the idea precisely through a simple and neat way.
this is amazing
the best and clear video one can find on the internet
this was the best tutorial i saw on SVM. Thank you very much.
This video is excelent! No flaws. What a great explanation! Congrats!
Great work Alice. Definitely staying away from all the vector mumbo jumbo, and having practical examples makes this invaluable :) Keep it up, thanks
Great job. It is one of the best tutorials I have ever watched on youtube. Thank you
Best ever tutorial, keep making new ones on machine learning as intuitive as this, thanks
Thank you Alice!! This really is the best SVM tutorial !
Great video showing SVM and python implementation
Very nice explanation. Simple, real-world examples. Awesome!
Thank you for your clear explanation.
So easy explaination. Best video on SVM
Forever grateful for this. I'm glad you decided to make this video. It helps me a lot. You could make this simple. Thank youu...
You're welcome! Glad it helped.
I don't have any data science background. Your video helps me understanding unfamiliar concepts!
THANK YOU!!!!
P.S. I would like to suggest you to speak louder. I sometimes do not hear it very well.
Great presentation. I gained a lot more intuition on SVMs. Thanks!
The explanation was so intelligently beautiful that I want to have muffins and cupcakes both. Thank you Alice
Excellent tutorial, so explantory and fluent
After this video , clearly understood the SVM Classifier .Thanks a lot
But can you do the coding of SVM from scratch?
You have a fantastic teaching style. I really enjoyed this video!
Concise, and informative. Well done Alice. Awaiting more videos from you.
I bought a course on ML and had to resort to youtube to understand SVM since they got very technical. This is by far the best explanation I have seen!
I bet im from the same course. Is it the machine learning A-Z course on udemy?
When food comes as an Example, Everything i'll understand!!
This is such a great explanation of SVM. Simple and easy! Disappointed though that you have not done videos on other ML algos. Hope you are planning to put together more such content on your channel. Looking forward! Thank you so much for making it easy to understand :)
Thanks Alice for a great tutorial. Very well explained. Simple and yet thorough without the jargon. Well done. Hope you can do more.
Very useful and ease to understand the SVM concept
That was a great tutorial! had all the necessary information without going into too much details!
Amazin tutorial . Was exactly looking for this . bookmarked this in my ML playlist and will also share it with someone who would wish to learn SVM !
Excellent presentation in no time. Thank you very much.
Impressive! it is the best tutorial I have seen on SVMs. The slides are very well done and the explanation was simple. Thank you
That's really great work. That means a lot to people like me who are very new to ML.
Thanks.
Thanks Alice, very well-told an introduction to SVM, It strongly clarifies the subject :)
This is a wonderful video for understanding SVM. Really easy to follow and learn. Great thanks!
Good video, straight forward and like how you broke the code up into pieces.
Awesome example! This has really helped me understand SVMs!
Very well explained. When things are hard to understand, then graphic elements play a crucial role. Upload more please.
Great video. Not enough words to Thank you for this amazing explanation.
Very good presentation. Clear and concise with good examples. Thank you!
Love your presentation, making it easy for understand SVM.
Amazingly clear and informative video. Many thanks.
Excellent video, really that is the best SVM tutorial. Thank you so much.
@Alice Zhao - excellent job on this; you present both visual conceptualizations *and* careful code explanations for SVM -- all very informative and impressive. *Thank you!*
Great Video! Thanks for explaining it that much clearly
wow. this is best video seen so far and I understood the topic very well