Package pyrobot :: Package plugins :: Package brains :: Module NNRandom :: Class Reinforce
[frames | no frames]

Type Reinforce

object --+            
         |            
  _Verbose --+        
             |        
        Thread --+    
                 |    
             Brain --+
                     |
                    Reinforce


Method Summary
  destroy(self)
Method to override if you create objects (such as devices).
  PorM(self, a, b)
  scale(self, val)
scale val to fall between 0 and 1...
  setup(self)
Init the brain, and create the network...
  step(self)
everything else...
    Inherited from Brain
  __init__(self, name, engine, **kwargs)
Constructor for Brain class.
  getDevice(self, *args)
Short-cut to call the robot's getDevice method.
  getEngine(self)
Returns the engine property.
  hasA(self, *args)
Short-cut to call the robot's hasA method.
  makeWindow(self)
Method that creates a window; seen under Brain -> Watch.
  motors(self, *args)
Short-cut to call the robot's motors method.
  move(self, *args)
Short-cut to call the robot's move method.
  pleaseQuit(self)
Signals the thread that we need to stop running.
  pleaseRun(self, callback)
Signals the thread that we need to start stepping.
  pleaseStep(self)
Signals the thread to make a step.
  pleaseStop(self)
Signals the thread that we need to stop stepping the robot.
  quit(self)
Signals the thread that we need to stop running.
  redraw(self)
Redraws the brain watch window.
  removeDevice(self, *args, **keywords)
Short-cut to call the robot's removeDevice method.
  requires(self, *args)
Short-cut to call the robot's requires method.
  rotate(self, *args)
Short-cut to call the robot's rotate method.
  run(self)
Runs the brain/thread.
  startDevice(self, *args, **keywords)
Short-cut to call the robot's startDevice method.
  stop(self)
Short-cut to call the robot's stop method.
  translate(self, *args)
Short-cut to call the robot's translate method.
  update(self)
Short-cut to call the robot's update method.
    Inherited from Thread
  __repr__(self)
  getName(self)
  isAlive(self)
  isDaemon(self)
  join(self, timeout)
  setDaemon(self, daemonic)
  setName(self, name)
  start(self)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name...
  __getattribute__(...)
x.__getattribute__('name') <==> x.name...
  __hash__(x)
x.__hash__() <==> hash(x)...
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T...
  __reduce__(...)
helper for pickle...
  __reduce_ex__(...)
helper for pickle...
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value...
  __str__(x)
x.__str__() <==> str(x)...

Method Details

destroy(self)

Method to override if you create objects (such as devices).
Overrides:
pyrobot.brain.Brain.destroy (inherited documentation)

scale(self, val)

scale val to fall between 0 and 1

setup(self)

Init the brain, and create the network
Overrides:
pyrobot.brain.Brain.setup

step(self)

everything else
.input latest sensor and motor values to network
.propagate
.move by resulting motor output
.set targets according to new sensor and motor values
.backpropagate
Overrides:
pyrobot.brain.Brain.step

Generated by Epydoc 2.1 on Mon Jul 25 01:39:27 2005 http://epydoc.sf.net