Hey everyone,
In my code, it is giving a error which so far I am not able to fix
ValueError Traceback (most recent call last)
in
1 t_X, t_parameters = L_model_forward_test_case_2hidden()
----> 2 t_AL, t_caches = L_model_forward(t_X, t_parameters)
3
4 print("AL = " + str(t_AL))
5
in L_model_forward(X, parameters)
43
44 AL, cache = linear_activation_forward(A, parameters[“W”+ str(L)],
—> 45 parameters[“b”+ str(L)],activation =“sigmoid”)
46 caches.append(cache)
47
in linear_activation_forward(A_prev, W, b, activation)
23 # YOUR CODE STARTS HERE
24
—> 25 Z, linear_cache = linear_forward(A_prev, W, b)
26 A, activation_cache = sigmoid(Z)
27
in linear_forward(A, W, b)
19 # YOUR CODE STARTS HERE
20
—> 21 Z = np.dot(W, A) + b
22
23 # YOUR CODE ENDS HERE
<array_function internals> in dot(*args, **kwargs)
ValueError: shapes (1,3) and (4,4) not aligned: 3 (dim 1) != 4 (dim 0)
Any idea what could be the problem ?
thank you