cybertools/brain
helmutm c0880a046e clean up state and transition stuff
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@1259 fd906abe-77d9-0310-91a1-e0d9ade77398
2006-07-09 14:30:56 +00:00
..
__init__.py added brain package, a simple experimental proof-of-concept neural network implementation 2006-07-07 18:04:30 +00:00
interfaces.py clean up state and transition stuff 2006-07-09 14:30:56 +00:00
neuron.py clean up state and transition stuff 2006-07-09 14:30:56 +00:00
README.txt clean up state and transition stuff 2006-07-09 14:30:56 +00:00
state.py clean up state and transition stuff 2006-07-09 14:30:56 +00:00
tests.py clean up state and transition stuff 2006-07-09 14:30:56 +00:00

=============================================================
A proof-of-concept Project Aiming at a sort of Neural Network
=============================================================

  ($Id$)

Let's start with creating a few neurons and connecting them with synapses.

  >>> from cybertools.brain.neuron import Neuron, Synapsis
  >>> n01 = Neuron()
  >>> n02 = Neuron()

In the simple default implementation the neurons are connected automatically
when creating a synapsis:

  >>> s0102 = Synapsis(n01, n02)
  >>> n01.senders
  []
  >>> n01.receivers == [s0102]
  True
  >>> n01.state.value
  1.0
  >>> n02.state.value
  1.0

When we trigger a neuron, all its receivers get triggered so that the
receivers' state is updated:

  >>> n01.trigger()
  >>> n01.state.value
  1.0
  >>> n02.state.value
  2.0