Question: ( Calculation of the Hyperplane, Margin planes and Maximum Margin Value, using Support Vector Machines SVM ) Consider two sets of 2 D data points,

(Calculation of the Hyperplane, Margin planes and Maximum Margin Value, using Support Vector Machines SVM)
Consider two sets of 2D data points, "negative" class AA, and "positive" class BB, given by the following MATLAB commands:
AA=[5,16; 6,12; 16,14; 13,6; 15,8; 10,15; 9,8; 13,13; 9,19; 13,18];
BB=[-5,1; -2,4; -2,0; -1,2; -6,5; -4,3; -6,-1; -10,4; -7,3; -9,0];
In order to avoid making a mistake with the transfer of the data (for example, missing a sign), it is recommended to use the "cut-and-paste" method.
For these two sets, design MATLAB script, which should be able to:
* clearly show on the plot your data and selected Support Vectors, marked with different colors for "positive" and "negative" classes;
* calculate the equation for the Hyperplane (for selected Support Vectors) and plot the Hyperplane on the same figure;
* calculate the Negative Margin Plane (Line) and plot it on the same figure;
* calculate the Maximum Margin Plane (Line) and plot it on the same figure;
* calculate the maximum margin value "m". Template of the resulting plot is presented in the illustration Figure.
TO DEMONSTRATE YOUR SOLUTION, enter your answers in three answer windows below the illustration Figure:
(1) In the FIRST answer window below ENTER your calculated SCALED coefficients "a","b" and "c" for the hyperplane equation of the format ax+by+c=0.
Note: your entered answer should have a strict specific format: having SEMICOLON (;) AFTER each MATLAB statement AND SPACE; but WITHOUT ANY other SPACES; use SMALL letters "a","b" and "c" for the coefficients of the hyperplane. Round their values and enter values with FOUR DIGITS after the dot. Enter all four digits after the dot, even if the last digits are given with zeros. For example, for the demo in Consultation Notes, the answers for "a","b" and "c" should be in the format:
a=0.2500; b=-0.2500; c=-0.7500;
I repeat myself: for quick marking, pls, follow this template, but enter YOUR OWN CALCULATED numbers for the "a","b" and "c" matrix.
IMPORTANT: your results will depend upon selection of the Support Vectors. In some cases, calculations of the Hyperplane should be repeated for a FEW DIFFERENT selections of Support Vectors to determine the unique set, resulting in the MAXIMUM MARGIN (out of all MAXIMUM MARGINS for the considered few cases with different sets of Support Vectors).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!