print ("sigmoid([0, 2]) = " + str(sigmoid(np.array([0,2]))))
sigmoid_test(sigmoid)
In the above code there is error. Since unable to change/ write in this section of code. Please help how to resolve it.
sigmoid([0, 2]) = [0.5 0.88079708]
NameError Traceback (most recent call last)
in
1 print ("sigmoid([0, 2]) = " + str(sigmoid(np.array([0,2]))))
2
----> 3 sigmoid_test(sigmoid)
NameError: name ‘sigmoid_test’ is not defined
Rashmi
February 10, 2023, 8:45pm
2
Hello SKBansal,
Welcome to the community!
When you get a name error that means you have missed running the previous cell somehow, which is why, you are getting this error:
NameError: name ‘sigmoid_test’ is not defined
Check it once and re-run it.
Hi Rashmi
Thanks for your suggestion but i have run all previous code cell. I got error below also. I think some function is imported but unable to get it. I have upload the code also. Kindly help to crack the error
{moderator edit - solution code removed}
NameError Traceback (most recent call last)
in
14 print ("cost = " + str(cost))
15
—> 16 propagate_test(propagate)
NameError: name ‘propagate_test’ is not defined
Kic
February 11, 2023, 10:11am
4
Hi @skbansal97 ,
The execution environment is out of sync. To reset it, at the top of the menu bar of your notebook:
click Kernel ->restart & clear all output
click Cell → run all above (from your current cell)
This will reset the execution environment and bring in all the libraries and files to run your code.