Answered step by step
Verified Expert Solution
Question
1 Approved Answer
TASK - 1 ( Calculation of the Hyperplane, Margin planes and Maximum Margin Value, using Support Vector Machines SVM ) Consider two sets of 2
TASKCalculation 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
In the SECOND answer window ENTER your solution for m the MAXIMUM MARGIN. Your entered answer should have a strict specific format, having SEMICOLON ; AFTER MATLAB statement; WITHOUT ANY SPACES; use SMALL letter m for the value of the maximum margin. Round its value and enter as answer with TWO DIGITS after the dot. Enter all two digits after the dot, even if the last digits are given with zeros. For example, for the demo in Consultation Notes, the answer for m should be in the format:
m;
In the THIRD answer window ENTER using "cutandpaste" method your MATLAB script the FIRST & SECOND answers of this Task.
Figure: Figure: Example from Consultation Wk Plotted D data points for two classes, with superimposed three Support Vectors, Hyperplane and NegativePositive Margin Planes Lines and the Scaled Equation of the Hyperplane shown in the Title of the figure. Attempt to produce similar plot, Task: FIRST ANSWER WINDOW: SUBMIT YOUR calculated values ab and c
Must exactly match pattern below in quotes but without quotes You may wish to "cutandpaste" it for further modification with your own calculated numbers. Do not use signs "plus" for positive values. In case of negative numbers, please, use the same sign "minus", as in this template: a; b; c;
points
Your answer
Task: SECOND ANSWER WINDOW: SUBMIT YOUR calculated value m
Must exactly match pattern in quotes but without quotes: m; You may wish to "cutandpaste" it for further modification with your own calculated numbers. Do not use spaces and sign "plus" in the answer.
points using your data.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started