Week2- sigmoid derivative TypeError: 'numpy.ndarray' object is not callable

while computing sigmoid derivative function getting error as numpy.ndarray object is not callable

need help

1 Like

In line 20, you are missing the multiplication operator between the terms. Please remove references to your code in the post.

This is one of the classic cases in which python is different from math notation. If you say this in python:

a(1 - a)

You are saying that a is a function and you are invoking it with the argument (1 - a). If what you intended is to multiply those two operands, the syntax for that in python is:

a * (1 - a)

1 Like