This is a logistic sigmoid function:
I know x. How can I calculate F(x
Use the numpy package to allow your sigmoid function to parse vectors.
In conformity with Deeplearning, I use the following code:
import numpy as np def sigmoid(x): s = 1/(1+np.exp(-x)) return s