[ValidateApp | INFO] Validating ‘/home/jovyan/work/submitted/courseraLearner/W4A2/Deep Neural Network - Application.ipynb’
[ValidateApp | INFO] Executing notebook with kernel: python3
[ValidateApp | ERROR] Timeout waiting for execute reply (30s).
[ValidateApp | ERROR] Interrupting kernel
Tests failed on 1 cell(s)! These tests could be hidden. Please check your submission.
The following cell failed:
parameters, costs = two_layer_model(train_x, train_y, layers_dims = (n_x, n_h, n_y)...
print("Cost after first iteration: " + str(costs[0]))
two_layer_model_test(two_layer_model)
The error was:
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-8-f9ec5304d38d> in <module>
----> 1 parameters, costs = two_layer_model(train_x, train_y, layers_dims = (n_x, n...
2
3 print("Cost after first iteration: " + str(costs[0]))
4
5 two_layer_model_test(two_layer_model)
<ipython-input-7-d7ef38fd4361> in two_layer_model(X, Y, layers_dims, learning_rate,...
78 # Update parameters.
79 #(approx. 1 line of code)
---> 80 parameters = update_parameters(parameters, grads, learning_rate)
81 # YOUR CODE STARTS HERE
82
~/work/submitted/courseraLearner/W4A2/dnn_app_utils_v3.py in update_parameters(para...
378 # Update rule for each parameter. Use a for loop.
379 for l in range(L):
--> 380 parameters["W" + str(l+1)] = parameters["W" + str(l+1)] - learning_...
381 parameters["b" + str(l+1)] = parameters["b" + str(l+1)] - learning_...
382
ValueError: operands could not be broadcast together with shapes (7,12288) (1,7)