How to calculate a logistic sigmoid function in Python?

后端 未结 15 1829
情话喂你
情话喂你 2020-11-29 16:14

This is a logistic sigmoid function:

\"enter

I know x. How can I calculate F(x

15条回答
  •  庸人自扰
    2020-11-29 16:55

    Below is the python function to do the same.

    def sigmoid(x) :
        return 1.0/(1+np.exp(-x))
    

提交回复
热议问题