Homework Assignment 4 RBFN for XOR problem

$30.00

Category: Tags: , , , , You will Instantly receive a download link for .zip solution file upon Payment || To Order Original Work Click Custom Order?

Description

5/5 - (3 votes)

1. RBFN for XOR problem (20 points) (a) For the 2-dimensional XOR problem,
we select the following four basis vectors:
r
1 = [−1,−1]
>
r
2 = [1,1]
>
r
3 = [−1,1]
>
r
4 = [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
∇r
kD(y

,M,φ(x)),
assuming that M is a logistic regression classifier and that
φ(x) =



exp
−(x−r
1
)
2

.
.
.
exp
−(x−r
K)
2



.
4. Programming Assignment (40 points in total) Please open https://github.
com/nyu-dl/Intro_to_ML_Lecture_Note/blob/master/homeworks/
hw4.ipynb and follow the instructions there.