JJoeven

Exercises / ml

Sigmoid chance

sigmoid(z) is 1/(1+exp(-z)). Clip z to [-30, 30]. Print sigmoid of -2, 0, and 2 rounded to 3 decimals.

Live Pythonpython
Output
Run to execute this in your browser. Nothing is sent to a server.