ann_elucubrations

Sorting my notes about artificial neural networks

View the Project on GitHub

A nice and practical introduction to Artificial Neural Networks (ANN) can be found in Andrej Karpathy’s blog (1)

Single Neuron

The equation representing a single neuron is

where:

Neural Net peoples enjoy representing their toys with block diagrams. A neuron can be described by the following diagram:

activation functions
FigXXX - Single Neuron.

Activation Function

A whole range of activation functions are commonly used. The following plot ( created with this code ) illustrate those available in keras.

activation functions
FigXXX - Activation functions.

Effect of Weights and Biases

By varying the weight and bias of a neuron, one is able to change the shape of the input/output function of the neuron, as shown in figure (XXX) ( created with this code )

activation functions
FigXXX - Weights.

Neural Network

Neurons are commonly organized in layers such as illustrated in figure (XXX). The equation can be matricially summarized as:

Input and ouput can be multi dimensional (tensors)

Layers can be stacked into a network

activation functions
FigXXX - Response of a dual layers network.

Network Fitting

back propagation

Examples

Learning a sine

code

activation functions
FigXXX - identity activation.
activation functions
FigXXX - logistic activation.
activation functions
FigXXX - tanh activation.
activation functions
FigXXX - relu activation.

Bibliography