Modeling and simulation
Assignment 1
TASK-1 (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:
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:
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).
Figure-1: Figure-1: Example from Consultation Wk 9. Plotted 2D data points for two classes, with superimposed three Support Vectors, Hyperplane and Negative/Positive Margin Planes (Lines) and the Scaled Equation of the Hyperplane shown in the Title of the figure. Attempt to produce similar plot, using your data.
Task-1: FIRST ANSWER WINDOW: SUBMIT YOUR calculated values "a", "b" and "c"*
Must exactly match pattern below in quotes (but without quotes). You may wish to "cut-and-paste" 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:
Task-1: SECOND ANSWER WINDOW: SUBMIT YOUR calculated value "m"*
Must exactly match pattern in quotes (but without quotes): You may wish to "cut-and-paste" it for further modification with your own calculated numbers. Do not use spaces and sign "plus" in the answer.
10 points
Task-1: THIRD ANSWER WINDOW: SUBMIT YOUR MATLAB SCRIPT AS ONE (SINGLE) FILE INTO THE WINDOW BELOW, using 'cut-and-paste' method, cutting the script from your *.M file. The first line should have: double percentage, space, and your student number with 's', similar to the pattern
(Please copy and paste the MATLAB CODE here. Don’t put any screen shot)
TASK-2 ("BASICS" of Linear Classifiers and SVM)
A rectangular forest block is shown in the Figure, which also shows with small circles trees/plants on this block of land. Coordinates of its corners can be retrieved from the title of the Figure.
Exact XX and YY coordinates for each plant is provided in the MATLAB data file, which can be retrieved, using this link: https://drive.google.com/file/d/1Ta3gurh5cWxlofWBcd7sa-WYAPFeSCxJ/view?usp=sharing
Forest block has been divided by its diagonals into four triangular areas, and trees/plants in the area of interest were marked by black "x" symbols.
USE LINEAR CLASSIFIERS and DETERMINE THE NUMBER OF PLANTS in the area, marked by "x".
It is compulsory to use LINEAR CLASSIFIERS method. Solutions by other methods will not be accepted.
Figure-2: Map of the forest block of land with marked trees/plans.
SUBMIT YOUR MATLAB SCRIPT FOR Task-2 AS ONE (SINGLE) FILE INTO THE WINDOW BELOW, using 'cut-and-paste' method, cutting the script from your *.M file. The first line should have: double percentage, space, and your student number with 's', similar to the pattern
(Please copy and paste the MATLAB CODE here. Don’t put any screen shot)
TASK-3 ("BASICS" of ANNs)
Consider deep feedforward ANN with its weights and biases, specified in Figure. This ANN has one input layer, two hidden layers and one output layer.
For simplicity, assume, that activation function for each node is an identity function, i.e. a linear function with UNIT coefficient:
Figure-3: Given deep ANN with one input layer, two hidden layers and one output layer.
SUBMIT YOUR MATLAB SCRIPT FOR Task-3 AS ONE (SINGLE) FILE INTO THE WINDOW BELOW, using 'cut-and-paste' method, cutting the script from your *.M file. The first line should have: double percentage, space, and your student number with 's', similar to the pattern
TASK-4 (Combination of the "BASICS" of ANNs and loops, being powerful enhancement of the simulation methods)
Consider recursive feedforward deep ANN with one input layer, 700 hidden layers and one output layer. [An example of much simpler recursive ANN with only THREE hidden layersis shown in Figure.]
Assume, the same sets of weights and biases for ALL nodes of the ANN.
Use the following data (pay attention to the signs in numbers):
For simplicity, assume, that the recursive activation function for each node is an identity function, i.e. a linear function with UNIT coefficient:
Determine the value of y2 − the second output of this deep ANN.
Figure-4: An example of the recurrent ANN with one input layer, only THREE hidden layers and one output layer. Note, that this is an illustration only, as in case of your assignment task, the number of hidden layers is much larger!
PLEASE, READ ADDITIONAL RECOMMENDATIONS AND ENTER YOUR ANSWER for TASK-4 BELOW:*
Select the choice (in the multiple choice answer fields below), most closely matching your numerical answer.
10 points
-410
-208
16
275
490
550
SUBMIT YOUR MATLAB SCRIPT FOR Task-4 AS ONE (SINGLE) FILE INTO THE WINDOW BELOW, using 'cut-and-paste' method, cutting the script from your *.M file. The first line should have: double percentage, space, and your student number with 's', similar to the pattern
(Please copy and paste the MATLAB CODE here. Don’t put any screen shot)
Expert's Answer
Chat with our Experts
Want to contact us directly? No Problem. We are always here for you
Your future, our responsibilty submit your task on time.
Order NowGet Online
Assignment Help Services