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 D data points, "negative" class AA and "positive" class BB given by the following MATLAB commands:
AA; ; ; ; ; ; ; ; ; ;
BB; ; ; ; ; ; ; ; ; ;
In order to avoid making a mistake with the transfer of the data for example, missing a sign it is recommended to use the "cutandpaste" 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:
In the FIRST answer window below ENTER your calculated SCALED coefficients ab and c for the hyperplane equation of the format axbyc
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 ab 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 ab and c should be in the format:
a; b; c;
I repeat myself: for quick marking, pls follow this template, but enter YOUR OWN CALCULATED numbers for the ab 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
