Quantcast
Channel: Small Basic
Viewing all articles
Browse latest Browse all 669

Small Basic – Artificial Neuron

$
0
0

I wrote a program about simple artificial neuron (PQK191).  This neuron has two inputs x1, x2 and one output y.  And the output can be shown as:

y = f(x1*w1 + x2*w2 + b).

While, w1, w2 are weights, b is bias and f() is unit step function.

f(x) = 1 (x ≧ 0)
f(x) = 0 (x < 0)

Screen shot of a program Artificial Neuron 0.1

Parameters b, w1, w2 are the properties of this neuron.  And with changing these parameters, this neuron will work like logical gates such as AND, OR, NAND and so on.

If (w1, w2, b) = (0.5, 0.5, -0.7) then this neuron works as AND gate.  If (w1, w2, b) = (0.5, 0.5, -0.3) then it works as OR gate.  If (w1, w2, b) = (-0.5, -0.5, -0.7) then it works as NAND gate.

Last year, AI Go player “Alpha Go” developed by DeepMind won professional Go player Lee Sedol. The AI has a lot of connected artificial neurons (neural network) and it is learning Go with the deep learning method.

Today’s program shows just a basic unit of a deep learning AI.

See Also


Viewing all articles
Browse latest Browse all 669

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>