I wrote this lambda for a sigmoid function:
sigmoid = lambda x: 1 / (1 + np.exp(-x))
I use this on arrays to calculate the sigmoid obviously.
Python gives me a warning:
RuntimeWarning: overflow encountered in exp
for this statement. How do I fix it?
The values that are sent to this lambda are floating point numbers.