layered.network module

class Layer(size, activation)[source]

Bases: object

apply(incoming)[source]

Store the incoming activation, apply the activation function and store the result as outgoing activation.

delta(above)[source]

The derivative of the activation function at the current state.

class Matrices(shapes, elements=None)[source]

Bases: object

__getitem__(index)[source]
__setitem__(index, data)[source]
copy()[source]
class Network(layers)[source]

Bases: object

feed(weights, data)[source]

Evaluate the network with alternative weights on the input data and return the output activation.

static forward(weight, activations)[source]
static backward(weight, activations)[source]