Numpy.float64 object is not callable

image
image

Hello,
What is my problem? Can someone please help me?
Many thanks
DungHTM


image

I don’t know what wrong with me? what should I do now?
Many thanks
Dung_Dung

You don’t say which exercise you are dealing with here, but I’ll bet it’s computing the sigmoid derivative. This is a case in which math notation and python diverge. If you say this in python:

s (1 - s)

What you are saying is that s is a function and you are calling it with the argument 1 - s. That will probably not end well. If what you really meant was to multiply, the way to say that in python is:

s * (1 - s)

Oh, sorry, I had only seen your first post when I made that reply. After seeing your second post, my guess is that you have overwritten np.sum with a scalar value. Look through your whole notebook. Is there someplace where np.sum appears on the left side of an assignment statement?

Dear paulinpaloalto

I have checked all of my assignment and there isn’t np.sum appears on the left side of an assignment. Could you help me check my assignment

my ID_labs: napcfnip

Many thanks
Dung_Dung

Dear paulinpaloalto

I submitted my assignment and get 100/100 although I still have this mistake, haha

Many thanks
Dung_Dung

We cannot see your assignment from the LabID: only the course staff can do that.