Open arilwan opened 4 years ago
getting the same error have you figured out how to fix it!
A, cache = linear_activation_forward(A_prev, parameters['W'+str(1)], parameters['b'+str(1)], activation='relu') Replace above line with A, cache = linear_activation_forward(A, parameters['W'+str(1)], parameters['b'+str(1)], activation='relu')
There is no problem with A_prev, the problem is with '1', since you are looping it should be 'l'
And then:
Error:
ValueError: shapes (4,5) and (4,4) not aligned: 5 (dim 1) != 4 (dim 0)
Any dea how to fix this?