Package pyrobot :: Package brain :: Module ravq :: Class ARAVQ
[frames | no frames]

Class ARAVQ

RAVQ --+
       |
      ARAVQ


Extends RAVQ as described in Linaker and Niklasson.

Method Summary
  __init__(self, bufferSize, epsilon, delta, historySize, learningRate)
  __str__(self)
To display ravq just call print <instance>.
  learn(self)
Only updates the model vector, not the winner.
  process(self)
Here we add the new learning methods.
  setLearning(self, value)
  updateDeltaWinner(self)
    Inherited from RAVQ
  bufferString(self)
  distanceMap(self)
Calculate distance map.
  distanceMapAsString(self)
  getNewWinner(self)
Returns boolean depending on whether or not there is a new winner after the last call to input.
  getWinnerCount(self)
Returns the number of times the current winner has been the winner, ie.
  input(self, vec)
Drives the ravq.
  loadRAVQFromFile(self, filename)
  modelString(self)
  saveRAVQToFile(self, filename)
  setAddModels(self, value)
Allows the RAVQ to dynamically add model vectors.
  setMask(self, mask)
The mask serves to weight certain components of the inputs in the distance calculations.
  setModelVectorsDistance(self)
How close are the model vectors to the current inputs?...
  setMovingAverage(self)
Determine moving average.
  setMovingAverageDistance(self)
How close is the moving average to the current inputs?...
  setVerbosity(self, value)
Determines which print statements to call.
  updateModelVectors(self)
Update models vectors with moving average if the moving average is the best model of the inputs.
  updateWinner(self)
Calculate the current winner based on which model vector is closest to the moving average.

Method Details

__str__(self)
(Informal representation operator)

To display ravq just call print <instance>.
Overrides:
pyrobot.brain.ravq.RAVQ.__str__ (inherited documentation)

learn(self)

Only updates the model vector, not the winner. Winner will change
next time step anyway.

process(self)

Here we add the new learning methods.
Overrides:
pyrobot.brain.ravq.RAVQ.process

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