Docsity

Four Patterns - Pattern Recognition - Assignment, Exercises of Computer Science

Toggle sidebar
bg1
Assignment
1. Consider a two-class problem. There are five patterns from one
class (labeled โ€˜Xโ€™) and four patterns from the second class (la-
beled โ€˜Oโ€™). This set of labeled patterns is described in the following
table.
(a) Show that the data is linearly separable.
(b) Show that f1 = f2 is a decision boundary.
(c) Obtain the weight vector w. Show that it is orthogonal to the
decision boundary.
(d) Suggest another decision boundary for the data.
(e) Compute the distance from the origin (X = (0, 0)t ) to the
decision boundary.
2. By transforming and normalizing the data in the table above, we
get the data in the following table. Use perceptron algorithm to
learn the weight vector.
Docsity.com
pf2

Partial preview of the text

Download Four Patterns - Pattern Recognition - Assignment and more Exercises Computer Science in PDF only on Docsity!

Assignment

  1. Consider a two-class problem. There are five patterns from one class (labeled โ€˜Xโ€™ ) and four patterns from the second class (la- beled โ€˜Oโ€™ ). This set of labeled patterns is described in the following table. (a) Show that the data is linearly separable. (b) Show that f 1 = f 2 is a decision boundary. (c) Obtain the weight vector w. Show that it is orthogonal to the decision boundary. (d) Suggest another decision boundary for the data. (e) Compute the distance from the origin (X = (0, 0) t ) to the decision boundary.
  2. By transforming and normalizing the data in the table above, we get the data in the following table. Use perceptron algorithm to learn the weight vector.

Docsity.com

  1. Let _ be the angle between w and X. Show that the value of cos _ is positive if wt^ X > 0.
  2. Consider the three patterns (1, 1) t and (2, 2) t from class โ€˜Xโ€™ and (2, 0) t from class โ€˜Oโ€™. Use perceptron learning algorithm to show that the decision boundary is f 1 โˆ’ 3 f 2 โˆ’ 1 = 0.
  3. Consider the truth table of Boolean OR given in the following table. There are two classes โ€˜0โ€™ and โ€˜1โ€™ corresponding to the output values 0 and 1 of f 1 f 2 respectively. There is one pattern of class โ€˜0โ€™ and three patterns of class โ€˜1โ€™. (a) Show that the classes are linearly separable. (b) After transformation and normalization, use the perceptron learning algorithm to obtain the weight vector.

Docsity.com