Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(a) The XOR function is defined by the dataset {(0,0,+), (1,0,), (0,1,), (1,1,+)}. Can a LINEAR SVM be constructed to correctly compute XOR? If it

image text in transcribed

(a) The XOR function is defined by the dataset {(0,0,+), (1,0,), (0,1,), (1,1,+)}. Can a LINEAR SVM be constructed to correctly compute XOR? If it can, show how by drawing the four possible input value pairs in the 2D input space, X1, X2, and the separator (i.e., decision boundary) computed by the SVM. If it cannot, explain or show why not. (b) Suppose we re-express the input data provided in part (a) using the computed features (x1, f(x1,x2)] instead of the original (x1, x2] pair of values, where f(x1,x2) is some function of both x and x2. Can a LINEAR SVM be constructed to correctly compute XOR using the computed features rather than the raw features? If it can, show how by defining the function f(x1,x2). If it cannot, explain or show why not. (c) Assume that we have an SVM with decision boundary wx+b=0 for a 3D feature space. Let w = [1,2,3] and b=4. Which one of the below points will be incorrectly classified by this SVM. (i) x1 = [0,0,0], r1 = -1 (ii) x2 = (-1,-1,-1], r2 = +1 (iii) x3 = 13.99,3,2], r3 = +1 I If the above 3 points were in the training set, what would have been the slack variables & for those? (Assume w and b does not change) (a) The XOR function is defined by the dataset {(0,0,+), (1,0,), (0,1,), (1,1,+)}. Can a LINEAR SVM be constructed to correctly compute XOR? If it can, show how by drawing the four possible input value pairs in the 2D input space, X1, X2, and the separator (i.e., decision boundary) computed by the SVM. If it cannot, explain or show why not. (b) Suppose we re-express the input data provided in part (a) using the computed features (x1, f(x1,x2)] instead of the original (x1, x2] pair of values, where f(x1,x2) is some function of both x and x2. Can a LINEAR SVM be constructed to correctly compute XOR using the computed features rather than the raw features? If it can, show how by defining the function f(x1,x2). If it cannot, explain or show why not. (c) Assume that we have an SVM with decision boundary wx+b=0 for a 3D feature space. Let w = [1,2,3] and b=4. Which one of the below points will be incorrectly classified by this SVM. (i) x1 = [0,0,0], r1 = -1 (ii) x2 = (-1,-1,-1], r2 = +1 (iii) x3 = 13.99,3,2], r3 = +1 I If the above 3 points were in the training set, what would have been the slack variables & for those? (Assume w and b does not change)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students also viewed these Databases questions

Question

What else will you include in your email?

Answered: 1 week ago

Question

Describe the role of the stakeholder, and list several examples.

Answered: 1 week ago

Question

Why do HCMSs exist? Do they change over time?

Answered: 1 week ago