Example 1: The Basic Neuron
The following is an applet and its instructions written by Fred Corbett. It is from his website Web Applets for Interactive Tutorials on Artificial Neural Learning. It is demonstrates our model of the simple neuron.
For this applet:
x1 and x2 are the input values (ie n = 2)
w1 and w2 are the multiplicative weights
u is the thresholding function treated as another weighted input where the input value is -1 and the multiplicative weight for it can be treated as the thresholding value ø. (ie we are simply subtracting ø)
y is the output of the Neuron.
The box above the circle contains the activation function fh(x). In the previous section we only referred to the unit step funtion as the activation function. Other functions may also be used as activation functions though and this applet allows you to use others such as the sigmoid, piecewise linear, and Gaussian.
Sigmoid: f(x) = (1 + e-ßx)-1
Piecewise Linear: f(x) = 0 , if x <= xmin
sfdf(x) = mx + b , if xmin < x < xmax
sfdf(x) = 1 , if x >= xmax
Gaussian: f(x) = (2ó*Pi)-1 * e-[(x-ù)(x-ù)/(2ó*ó)]
Instructions:
Using this applet is straightforward, but a few points are in order:
Previous:- Introduction: The Basic Neuron Next:- Perceptron Learning Theory |