Course 1, Week 2, Exercise 7 (Predict)

While trying to run the predict function, I’m getting a TypeError: sigmoid() takes 1 positional argument but 2 were given (attaching screenshot as well).

Hi, I think the error is quite explicit. You are calling the sigmoid function with two arguments and only one is expected. When calling sigmoid you’re passing:

  • Argument 1:, X)
  • Argument 2: b

Please check this part as I don’t think it is what you wanted to implement.

Kind regards,

1 Like