Homework Assignment 4 KNN and Basis Function Network solution

$24.99

Original Work ?

Download Details:

  • Name: HW4-1.zip
  • Type: zip
  • Size: 11.35 MB

Category: You will Instantly receive a download link upon Payment||Click Original Work Button for Custom work

Description

5/5 - (1 vote)

1. RBFN for XOR problem (20 points) (a) For the 2-dimensional XOR problem, we select the following four basis vectors: r1 = [−1,−1] r2 = [1,1] r3 = [−1,1] r4 = [1,−1]. Show that the XOR problem is solved by the radial basis function network with the following weight vector: w= [1,1,−1,−1,0].
2. Nearest-neighbour classifier by RBFN (20 points) A nearest-neighbour classifier can be constructed as a radial basis function network by selecting all the input vectors in a training set as basis vectors. In a multi-class classification setting (i.e., there are more than two categories), provide a description on how a weight matrix could be built.
1
3. Adaptive RBFN (20 points) Unlike a fixed basis function network, an adaptive basis function network adapts basis vectors so as to maximize the classification accuracy (i.e. to minimize the empirical cost.) In order to do so, we need to be able to compute the gradient of the (logistic regression) distance function with respect to each and every basis vector. Derive this gradient ∇rkD(y∗,M,φ(x)), assuming that M is a logistic regression classifier and that φ(x) =   exp−(x−r1)2 . . . exp−(x−rK)2   .
4. ProgrammingAssignment(40pointsintotal)