#include <Projection.h>
Inheritance diagram for verve::Projection:
Public Member Functions | |
VERVE_DECL | Projection () |
virtual VERVE_DECL | ~Projection () |
virtual VERVE_DECL void VERVE_CALL | init (Population *pop1, Population *pop2, InitialWeightMethod initWeightMethod, real maxInputPopActivationSum) |
virtual VERVE_DECL void VERVE_CALL | init (Population *pop, Neuron *neuron, InitialWeightMethod initWeightMethod, real maxInputPopActivationSum) |
virtual VERVE_DECL void VERVE_CALL | init (Neuron *neuron, Population *pop, InitialWeightMethod initWeightMethod, real maxInputPopActivationSum) |
virtual VERVE_DECL void VERVE_CALL | resetShortTermMemory () |
virtual VERVE_DECL void VERVE_CALL | addPreNeuron (Neuron *neuron) |
virtual VERVE_DECL unsigned int VERVE_CALL | getNumConnections () const |
virtual VERVE_DECL Connection *VERVE_CALL | getConnection (unsigned int i) |
Protected Member Functions | |
void | clear () |
void | setInitialConnectionWeights () |
void | setInitialConnectionWeight (Connection *c) |
void | createConnections (Neuron *neuron, Population *pop) |
void | storeTargetNeuronReferences (Population *pop) |
void | storeTargetNeuronReferences (Neuron *neuron) |
virtual void | connectNeurons (Neuron *neuron1, Neuron *neuron2) |
Protected Attributes | |
std::vector< Connection * > | mConnections |
std::vector< Neuron * > | mTargetNeurons |
InitialWeightMethod | mInitialWeightMethod |
real | mMaxInputPopActivationSum |
Definition at line 50 of file Projection.h.
|
Definition at line 31 of file Projection.cpp. References verve::IDEAL_NOISE, and mInitialWeightMethod. |
|
Destroys all Connections.
Definition at line 37 of file Projection.cpp. References clear(). |
|
Connects a new pre-synaptic Neuron to all post-synaptic targets. Adds noise to the new Connections. Definition at line 128 of file Projection.cpp. References connectNeurons(), mConnections, mTargetNeurons, and setInitialConnectionWeight(). |
|
Destroys all Connections.
Definition at line 103 of file Projection.cpp. References mConnections. Referenced by init(), and ~Projection(). |
|
Creates a Connection from one neuron1 to neuron2 and stores the Connection internally. Informs the two Neurons of the new Connection. Reimplemented in verve::TDProjection. Definition at line 255 of file Projection.cpp. References verve::Neuron::addAxon(), verve::Neuron::addDendrite(), and mConnections. Referenced by addPreNeuron(), createConnections(), and init(). |
|
Creates a set of Connections from a Neuron to a Population.
Definition at line 232 of file Projection.cpp. References connectNeurons(), verve::Population::getNeuron(), and verve::Population::getNumNeurons(). Referenced by init(). |
|
Returns the Connection at the given index.
Definition at line 148 of file Projection.cpp. References mConnections. |
|
Returns the number of Connections in the Projection.
Definition at line 143 of file Projection.cpp. References mConnections. |
|
Creates Connections from a single Neuron to a Population. Clears any existing Connections first. Sets the inital Connection weight method and the maximum activation sum of the presynaptic Population (used to determine initial weight noise). Definition at line 86 of file Projection.cpp. References clear(), createConnections(), verve::Population::getNumNeurons(), mConnections, mInitialWeightMethod, mMaxInputPopActivationSum, setInitialConnectionWeights(), and storeTargetNeuronReferences(). |
|
Creates Connections from a Population to a single Neuron. Clears any existing Connections first. Sets the inital Connection weight method and the maximum activation sum of the presynaptic Population (used to determine initial weight noise). Definition at line 65 of file Projection.cpp. References clear(), connectNeurons(), verve::Population::getNeuron(), verve::Population::getNumNeurons(), mConnections, mInitialWeightMethod, and mMaxInputPopActivationSum. |
|
Creates Connections from one Population to another. Clears any existing Connections first. Sets the inital Connection weight method and the maximum activation sum of the presynaptic Population (used to determine initial weight noise). Definition at line 42 of file Projection.cpp. References clear(), createConnections(), verve::Population::getNeuron(), verve::Population::getNumNeurons(), mConnections, mInitialWeightMethod, and mMaxInputPopActivationSum. Referenced by verve::Population::project(), and verve::Population::projectTD(). |
|
Resets temporary dynamics without affecting learned parameters.
Definition at line 119 of file Projection.cpp. References mConnections. |
|
Sets the Connection's weights to some initial value as determined by the InitialWeightMethod.
Definition at line 190 of file Projection.cpp. References verve::IDEAL_NOISE, mInitialWeightMethod, mMaxInputPopActivationSum, verve::globals::randomRealGauss(), verve::Connection::setWeight(), verve::WEIGHTS_NEAR_0, and verve::WEIGHTS_NEAR_1. Referenced by addPreNeuron(), and setInitialConnectionWeights(). |
|
Sets all Connection weights to some initial value as determined by the InitialWeightMethod.
Definition at line 181 of file Projection.cpp. References mConnections, and setInitialConnectionWeight(). Referenced by init(). |
|
Stores a reference to the given Neuron in the target Neurons list.
Definition at line 250 of file Projection.cpp. References mTargetNeurons. |
|
Stores references to the given Population's Neurons in the target Neurons list.
Definition at line 241 of file Projection.cpp. References verve::Population::getNeuron(), and verve::Population::getNumNeurons(). Referenced by init(). |
|
A list of all Connections in the Projection.
Definition at line 143 of file Projection.h. Referenced by addPreNeuron(), clear(), verve::TDProjection::connectNeurons(), connectNeurons(), getConnection(), getNumConnections(), init(), resetShortTermMemory(), verve::TDProjection::setETraceDecayFactor(), setInitialConnectionWeights(), and verve::TDProjection::setTDDiscountFactor(). |
|
The method used to set new Connection weights.
Definition at line 150 of file Projection.h. Referenced by init(), Projection(), and setInitialConnectionWeight(). |
|
The maximum activation sum of the presynaptic Population (used to determine initial weight noise).
Definition at line 154 of file Projection.h. Referenced by init(), and setInitialConnectionWeight(). |
|
A list of all target Neurons. Useful for adding new Connections later. Definition at line 147 of file Projection.h. Referenced by addPreNeuron(), and storeTargetNeuronReferences(). |