You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
data-maker/Untitled.ipynb

16 KiB

None <html lang="en"> <head> </head>
In [1]:
import numpy as np
import pandas as pd

x = np.arange(-4,4)
def sigmoid(x):
    e = np.exp(-x)
    return np.divide(1,e + e)
df = pd.DataFrame({"x":x,"tanh":np.tanh(x),"sigmoid":sigmoid( np.tanh(x))})
In [10]:
df[['tanh','sigmoid']].plot()
Out[10]:
<matplotlib.axes._subplots.AxesSubplot at 0x7ff349080d30>
No description has been provided for this image
In [ ]:

</html>