Hi, I am stuck at this exercise, I couldn’t fix the traceback. Could you please help? Thanks!
{code removed by mentor}
Hi, I am stuck at this exercise, I couldn’t fix the traceback. Could you please help? Thanks!
Hello @Shiangtang,
I think your solution was having the same problem as this post that I had answered previously. Please check it out.
Cheers,
Raymond
PS: I have removed your code since sharing it violates the honor code.
Hi, Raymond, thanks for your reply. I went through the other post you referenced, which says something about the function expects either sigmoid or relu as the value for activation. But I still don’t know what’s wrong with my codes, since I used sigmoid/relu as the value inside the function in question. Could you say more about this? Also I’m not able to see the entire traceback on Coursera Jupiter.
PS: what’s the correct way to ask a question about my code if we are not allowed to post it here?
Thanks!
Hello @Shiangtang,
The error traceback which you have provided. (the image that I have not removed)
Note that from the post which I have shared, the program was checking if the activation
input is among one of ['relu', 'sigmoid']
.
Cheers,
Raymond
Yes, we can see the bug that Raymond is pointing out in the exception trace.