Question: Assume that X = { x ( 1 ) , . . . , x ( m ) } is a dataset of m samples

Assume that X={x(1),...,x(m)} is a dataset of m samples with 3 features. The samples are classified into 2 categories with labels y(i)in{0,1}. We want to perform binary classification using a simple neural network. Assume that the three features are x1,x2 and x3,the three neurons in the hidden layer are h1,h2 and h3, the output neuron is o, the bias for input layer is bx and that for the hidden layer is bh. Let the weight from xi to hj be wi,j[1] for iin{1,2,3},jin{1,2,3}, and the weight from hj to o be wj[2]. Suppose we use the sigmoid function
as the activation function for h1,h2,h3 and o, the loss function: l=1mi=1m(o(i)-y(i))2,
where o(i) is the result of the output neuron for example i.
The figure: The illustration of three connected neural networks consists of INPUT, HIDDEN and OUTPUT layers, as well as the related weight and bias.
(a) First, please distinguish which neural network is correct and suitable for the binary classification task from the above figure and derive the final output for one training sample using forward propagation based on the given architecture. Your answer should be written in terms of x,w,b and the sigmoid function.
(b)(Based on the previous background) Second, for the correct neural network, if we use a leaming rate of , please derive the updating formula for w1[2]. Your answer shoule be written in terms of o(i),y(i)(if you use some additional symbols, please add some note for them).
 Assume that X={x(1),...,x(m)} is a dataset of m samples with 3

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!