In [7]:
%pylab inline
%config InlineBackend.figure_format = 'retina'


Populating the interactive namespace from numpy and matplotlib

In [8]:
def σ(z):
    return 1/(1 + e**(-z))

In [9]:
def Plot(fn, *args):
    argLength = len(args);
    if argLength == 1:
        start = args[0][0]
        end = args[0][1]
        points = None
        try: 
            points = args[0][2]
        except:
            pass
        if not points: points = 30
        xs = linspace(start, end, points);
        plot(xs, list(map(fn, xs)));

In [11]:
Plot(σ, [-10, 10])



In [72]:
%%bash
git clone https://github.com/mnielsen/neural-networks-and-deep-learning.git


Cloning into 'neural-networks-and-deep-learning'...

In [ ]: