Question: Write a script in Matlab that constructs the matrix, X = rand ( 1 , 2 ) and vector y = rand ( 1 ,

Write a script in Matlab that constructs the matrix, X = rand(1,2) and vector y = rand(1,1). Construct a 2x2x1 FFNN. Calculate the forward propogation for one instance with a sigmoid activation function. Calculate the back-propogation gradient for the cost function, E =1/2*(y- y_pred)^2/ at the output layer. knowing e =(y- y_pred). Update your parameters W_h =[w_h_10, w_h_11,w_h_12; w_h_20, w_h_21,w_h_22] and W_o =[w_o_10,w_o_11]. Do this for 1 iteration.

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 Programming Questions!