#include <ActiveTDConnectionList.h>
Public Member Functions | |
VERVE_DECL | ActiveTDConnectionList () |
virtual VERVE_DECL | ~ActiveTDConnectionList () |
virtual VERVE_DECL void VERVE_CALL | clearList () |
virtual VERVE_DECL void VERVE_CALL | addNewActiveConnection (TDConnection *c) |
virtual VERVE_DECL void VERVE_CALL | increaseETraces () |
virtual VERVE_DECL void VERVE_CALL | decayETraces () |
virtual VERVE_DECL void VERVE_CALL | trainConnections (real learningFactorTimesTDError) |
Protected Attributes | |
std::list< TDConnection * > | mConnections |
This saves a lot of time by only looping over the active TDConnections, not all of them.
Definition at line 38 of file ActiveTDConnectionList.h.
|
Definition at line 29 of file ActiveTDConnectionList.cpp. |
|
Definition at line 33 of file ActiveTDConnectionList.cpp. References mConnections. |
|
Adds a new active TDConnection to the list. If the TDConnection is already in the list, this will do nothing. Definition at line 47 of file ActiveTDConnectionList.cpp. References verve::TDConnection::isInActiveList(). |
|
Empties the list of active TDConnections and notifies each one that it is no longer in an active TDConnection list.
Definition at line 38 of file ActiveTDConnectionList.cpp. References mConnections. |
|
Decays the eligibility trace of each TDConnection.
Definition at line 73 of file ActiveTDConnectionList.cpp. References verve::defaults::activeETraceThreshold, and mConnections. Referenced by verve::RLModule::update(). |
|
Increases the eligibility trace of each TDConnection, if appropriate.
Definition at line 64 of file ActiveTDConnectionList.cpp. References mConnections. Referenced by verve::RLModule::update(). |
|
Trains the TDConnections using the given error signal (i.e. learning factor * TD error). Definition at line 107 of file ActiveTDConnectionList.cpp. References mConnections. Referenced by verve::RLModule::trainTDRule(). |
|
A list of active TDConnections.
Definition at line 68 of file ActiveTDConnectionList.h. Referenced by clearList(), decayETraces(), increaseETraces(), trainConnections(), and ~ActiveTDConnectionList(). |