In [1]:
import numpy as np

In [53]:
x = np.linspace(-10,10)
y = 1 / (1 + np.exp(-x))

In [54]:
%matplotlib inline
from matplotlib import pyplot as plt
plt.style.use('ggplot')
plt.plot(x,y)
plt.xlabel('x-axis')
plt.ylabel('y-axis')
plt.title('Logistic graph')


Out[54]:
<matplotlib.text.Text at 0xb148ef0>

In [55]:
tanh = np.tanh(x)
%matplotlib inline
from matplotlib import pyplot as plt
plt.style.use('ggplot')
plt.plot(tanh)
plt.xlabel('x-axis')
plt.ylabel('y-axis')
plt.title('Hyperbolic Tangent graph')


Out[55]:
<matplotlib.text.Text at 0xb3c5978>

In [ ]: