I\'ve the following numpy ndarray.
[ -0.54761371 17.04850603 4.86054302]
I want to apply this function to all elements of the array
scipy already implements the function Luckily, Python allows us to rename things upon import:
from scipy.special import expit as sigmoid