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

Write a script in Matlab that constructs the matrix, X = rand(100,2) and vector y = rand(100,1). Construct a 2x1x1 FFNN. Calculate the forward propagation for all 100 instances without a squashing function(error, e =[e1 e2... e100]'). Calculate the gradient for the cost function, MSE(x_i)= sum(y_i - y_pred_i)^2/N at the output layer and the hidden layer. knowing e_i =(y_i - y_pred_i). Update your parameters W_h =[w_h_11; w_h_21], and w_o_11. Do this for 5 iterations.

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!