#include <TDConnection.h>
Inheritance diagram for verve::TDConnection:
Public Member Functions | |
VERVE_DECL | TDConnection (Neuron *preNeuron, Neuron *postNeuron, TDConnectionType type) |
virtual VERVE_DECL | ~TDConnection () |
virtual VERVE_DECL TDConnectionType VERVE_CALL | getTDConnectionType () |
virtual VERVE_DECL void VERVE_CALL | increaseETrace () |
virtual VERVE_DECL void VERVE_CALL | decayETrace () |
virtual VERVE_DECL void VERVE_CALL | setETraceDecayFactor (real value) |
virtual VERVE_DECL void VERVE_CALL | setTDDiscountFactor (real value) |
virtual VERVE_DECL void VERVE_CALL | setETrace (real trace) |
virtual VERVE_DECL real VERVE_CALL | getETrace () const |
virtual VERVE_DECL void VERVE_CALL | resetShortTermMemory () |
virtual VERVE_DECL void VERVE_CALL | applyTDLearning (real learningFactorTimesTDError) |
virtual VERVE_DECL void VERVE_CALL | setIsInActiveList (bool inList) |
virtual VERVE_DECL bool VERVE_CALL | isInActiveList () |
Protected Attributes | |
real | mETrace |
TDConnectionType | mTDConnectionType |
real | mETraceDecayFactor |
real | mTDDiscountFactor |
bool | mIsInActiveList |
Definition at line 44 of file TDConnection.h.
|
Definition at line 29 of file TDConnection.cpp. References mETrace, mETraceDecayFactor, mIsInActiveList, mTDConnectionType, and mTDDiscountFactor. |
|
Deallocates any dynamically allocated memory. This object should never be destroyed by the user calling 'delete' because memory allocated within the DLL should also be destroyed within the DLL. Definition at line 41 of file TDConnection.cpp. |
|
Allows temporal difference learning to occur.
Definition at line 121 of file TDConnection.cpp. References verve::Connection::addToWeight(), and mETrace. |
|
Decays the eligibility trace according to the decay factor.
Definition at line 115 of file TDConnection.cpp. References mETrace, mETraceDecayFactor, and mTDDiscountFactor. |
|
Returns the current eligibility trace.
Definition at line 57 of file TDConnection.cpp. References mETrace. |
|
Returns the type of TDConnection.
Definition at line 62 of file TDConnection.cpp. References mTDConnectionType. |
|
Increases the eligibility trace if the Connection is "active.". Eligibility depends on the amount of pre-synaptic activity. Eligibility depends on both pre- and post-synaptic activity. Definition at line 77 of file TDConnection.cpp. References verve::Neuron::getFiringRate(), mETrace, verve::Connection::mPostNeuron, verve::Connection::mPreNeuron, mTDConnectionType, verve::POLICY_TDCONNECTION, and verve::VALUE_FUNCTION_TDCONNECTION. |
|
Returns whether the TDConnection is in the ActiveTDConnectionList.
Definition at line 131 of file TDConnection.cpp. References mIsInActiveList. Referenced by verve::ActiveTDConnectionList::addNewActiveConnection(). |
|
Overridden to reset the eligibility trace in addition to other STM parameters.
Reimplemented from verve::Connection. Definition at line 45 of file TDConnection.cpp. References mETrace, mIsInActiveList, and verve::Connection::resetShortTermMemory(). |
|
Sets the eligibility trace.
Definition at line 52 of file TDConnection.cpp. References mETrace. |
|
Sets the factor that determines how fast the eligibility trace decays.
Definition at line 67 of file TDConnection.cpp. References mETraceDecayFactor. Referenced by verve::TDProjection::connectNeurons(). |
|
Sets whether the TDConnection is in the ActiveTDConnectionList.
Definition at line 126 of file TDConnection.cpp. References mIsInActiveList. |
|
Sets the factor that determines how much future rewards are discounted.
Definition at line 72 of file TDConnection.cpp. References mTDDiscountFactor. Referenced by verve::TDProjection::connectNeurons(). |
|
The decaying trace of eligibility. The higher this value, the more the weight can be changed. Definition at line 97 of file TDConnection.h. Referenced by applyTDLearning(), decayETrace(), getETrace(), increaseETrace(), resetShortTermMemory(), setETrace(), and TDConnection(). |
|
Determines how fast the eligibility trace decays.
Definition at line 103 of file TDConnection.h. Referenced by decayETrace(), setETraceDecayFactor(), and TDConnection(). |
|
This is set to true when the TDConnection is added to the ActiveTDConnectionList.
Definition at line 110 of file TDConnection.h. Referenced by isInActiveList(), resetShortTermMemory(), setIsInActiveList(), and TDConnection(). |
|
The type of TDConnection.
Definition at line 100 of file TDConnection.h. Referenced by getTDConnectionType(), increaseETrace(), and TDConnection(). |
|
Determines how much future rewards are discounted.
Definition at line 106 of file TDConnection.h. Referenced by decayETrace(), setTDDiscountFactor(), and TDConnection(). |