In this tutorial we are going to implement the Support Vector Machine through basic python programming instead of using SVM module and package.
A Support Vector Machine (SVM) is a discriminative classifier formally defined by a separating hyperplane. In other words, given labeled training data (supervised learning), the algorithm outputs an optimal hyperplane which categorizes new examples.
To understand SVM’s a bit better, Lets first take a look at why they are called support vector machines. So say we got some sample data over here of features that classify whether a observed picture is a dog or a cat, so we can for example look at snout length or and ear geometry if we assume that dogs generally have longer snouts and cat have much more pointy ear shapes.
So how do we decide where to draw our decision boundary?
Well we can draw it over here or here or like this. Any of these would be fine, but what would be the best? If we do not have the optimal decision boundary we could incorrectly mis-classify a dog with a cat. So if we draw an arbitrary separation line and we use intuition to draw it somewhere between this data point for the dog class and this data point of the cat class.
These points are known as support Vectors – Which are defined as data points that the margin pushes up against or points that are closest to the opposing class. So the algorithm basically implies that only support vector are important whereas other training examples are ‘ignorable’. An example of this is so that if you have our case of a dog that looks like a cat or cat that is groomed like a dog, we want our classifier to look at these extremes and set our margins based on these support vectors.
Credit: Andrew Nagi, Killian Weinberger, Sentdex
#MachineLearning #CustomProgrammed #SupportVectorMachine
На этой странице сайта вы можете посмотреть видео онлайн Support Vector Machine From Python Programming Scratch (Part2) длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Md. Iqbal Hossain 07 Апрель 2020, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 166 раз и оно понравилось 6 зрителям. Приятного просмотра!