次の方法で共有


Small Basic - Artificial Neuron

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

Comments

  • Anonymous
    January 18, 2017
    nice article nonky))i found some other params:(w1, w2, b)["and"]="0.5 0.5 -0.7["nand"]="-0.5 -0.5 0.7["or"]="0.5 0.5 -0.3["nor"]="-0.5 -0.5 0.3all in text demo: DCK316
    • Anonymous
      January 20, 2017
      Hi Tryhest, your DCK316 is a simple program to help understanding artificial neuron. Thanks.
  • Anonymous
    January 22, 2017
    Fantastic Nonki!I learned a lot by reading this blog.Is the technique of the artificial neuron could be apply to a decision algorithm in a program to play chess?
  • Anonymous
    February 15, 2017
    (translated by Google translator)I'm sorry that I can not speak in English. Google translator translates my words poorly. Nevertheless, I try to tell my main thought.Dear Nonki, you're wrong when you combine the neuron with AI. Any Intellect is a Technology. This Technology can be implemented in different ways. Neurons are merely one of the ways. Moreover, not the best possible way.I advise you do not waste time on neurons.
    • Anonymous
      March 03, 2017
      AbsoluteBeginner, thank you for your comment. But I'd like to introduce how differrent between normal programs and programs using neural network.