C1 W4: Issue with ndarray in exercise 5

Hi,
I believe I have implemented correctly the solution for exercise 5 (C1 W4), I am getting the output as the expected ones: AL = [[0.03921668 0.70498921 0.19734387 0.04728177]]
However I am getting the following errors when I run:
Error: The function should return a numpy array. in variable 0. Got type: <class ‘numpy.ndarray’> but expected type <class ‘tuple’>
Error: The function should return a numpy array. in variable 1. Got type: <class ‘numpy.ndarray’> but expected type <class ‘tuple’>
Error: The function should return a numpy array. in variable 2. Got type: <class ‘numpy.ndarray’> but expected type <class ‘tuple’>
I am updating caches as follows:
caches.append(cache)

Could anyone help please?

Best Regards,
Hassan.

1 Like

Please see this user guide and move your post to the right topic.