Course 1, Week 2, Exercise 8

Hello, I am getting errors on Exercise 8. Appreciate any help.

Here the errors:

Hi @tagutierrez, we would appreciate if you could just share the traceback of the concerned query at this platform. Well, the codes seems fine. The problem might be the hard-coding or copy-pasting some of the values within the function. Thanks.

Actually you can see the bug in the exception trace there:

w = params["b"]

So w ends up being a scalar instead of a vector, which is why predict “throws”.