Hi,
I got assertion error for my sigmoid function as below
my equation is simply : s = math.exp(x) , and I didn’t use any global variable as the error suggested, so I am really confused.
Hi,
I got assertion error for my sigmoid function as below
Your expression for the sigmoid function is wrong. Please take a closer look at the proper expression for the sigmoid function:
\sigma \left(z\right) = \frac{1}{1+e^{-z}} .
You have just coded the exponential function.