Question
Use MATLAB or OCTAVE Use MATLAB or Octave Given the following two classes: Class A {(-2, 2), (0, 2), (2, 2)} Class B {(-2, 0),
Use MATLAB or OCTAVE
Use MATLAB or Octave
Given the following two classes: Class A {(-2, 2), (0, 2), (2, 2)} Class B {(-2, 0), (0, 0), (2, 0)} i. Plot the two classes. ii. Find the mean of each class. iii. Find the equation of the plane that separates those classes halfway between their respective means. That is, find the separating plane that could be used for classification with maximum margin between the classes; should produce positive values for class B and negative values for class A. (Calculate the x-value and y-value of the midpoint between the sample mean of class A and class B). iv. Calculate the x-value and y-value of the normalized vector that points towards class B. v. Calculate the weights (slopes) in the equation of the separating plane z = 0 + 1 + 2 that creates the separating line in the level set z = 0
Use MATLAB or OCTAVE
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