0
sigmoid(x) = 1/(1+e(-x))

where -x should be in superscript. Without using numpy package, how to write the code to compute this value in Python? For example:

s = 1 / (1 + e(-x))

Suppose is the variable to receive the computation. I am learning Python.

user697911
  • 10,043
  • 25
  • 95
  • 169

0 Answers0