A node which buffers the information needed to retrospectively correct incoming STDP synapses with predominantly axonal delays. More...
#include <axonal_delay_archiving_node.h>
Public Member Functions | |
| AxonalDelayArchivingNode () | |
| AxonalDelayArchivingNode (const AxonalDelayArchivingNode &) | |
| void | register_axonal_delay_connection (const double dendritic_delay, const double axonal_delay) |
| Register a new incoming STDP connection, so this node knows whether it has to maintain correction entries at all. | |
| void | add_correction_entry_stdp_ax_delay (SpikeEvent &spike_event, const double t_last_pre_spike, const double weight_revert, const double new_weight, const double K_plus_revert, const double time_while_critical) |
| Buffer a correction entry for the critical time window. | |
| void | update_weight_revert (const size_t lcid, const double weight_revert) |
| In case a correction is applied for a pre-synaptic spike, any other pre-synaptic spikes from the same synapse need to be informed of the new base weight to revert to for the correction. | |
| Public Member Functions inherited from nest::StructuralPlasticityNode | |
| StructuralPlasticityNode () | |
| StructuralPlasticityNode (const StructuralPlasticityNode &) | |
| double | get_Ca_minus () const override |
| return the current value of Ca_minus | |
| double | get_synaptic_elements (std::string n) const override |
| Get the number of synaptic element for the current Node. | |
| int | get_synaptic_elements_vacant (std::string n) const override |
| Get the number of synaptic elements of type n which are available for new synapse creation. | |
| int | get_synaptic_elements_connected (std::string n) const override |
| Get the number of synaptic element of type n which are currently connected. | |
| std::map< std::string, double > | get_synaptic_elements () const override |
| Get the number of all synaptic elements for the current Node. | |
| void | update_synaptic_elements (double t) override |
| Change the number of synaptic elements in the node depending on the dynamics described by the corresponding growth curve. | |
| void | decay_synaptic_elements_vacant () override |
| Delete a certain portion of the vacant synaptic elements which are not in use. | |
| void | connect_synaptic_element (std::string name, int n) override |
| Change the number of connected synaptic elements by n. | |
| void | get_status (Dictionary &d) const override |
| Export properties of the node by setting entries in the status dictionary. | |
| void | set_status (const Dictionary &d) override |
| Change properties of the node according to the entries in the dictionary. | |
| double | get_tau_Ca () const |
| Retrieve the current value of tau_Ca which defines the exponential decay constant of the intracellular calcium concentration. | |
| Public Member Functions inherited from nest::Node | |
| Node () | |
| Node (Node const &) | |
| virtual | ~Node () |
| virtual Node * | clone () const |
| This function creates a new object by calling the derived class' copy constructor and returning its pointer. | |
| virtual bool | has_proxies () const |
| Returns true if the node has proxies on remote threads. | |
| virtual bool | supports_urbanczik_archiving () const |
| Returns true if the node supports the Urbanczik-Senn plasticity rule. | |
| virtual bool | local_receiver () const |
| Returns true if the node only receives events from nodes/devices on the same thread. | |
| virtual bool | one_node_per_process () const |
| Returns true if the node exists only once per process, but does not have proxies on remote threads. | |
| virtual bool | is_off_grid () const |
| Returns true if the node sends/receives off-grid events. | |
| virtual bool | is_proxy () const |
| Returns true if the node is a proxy node. | |
| std::string | get_name () const |
| Return class name. | |
| virtual std::string | get_element_type () const |
| Return the element type of the node. | |
| size_t | get_node_id () const |
| Return global Network ID. | |
| int | get_model_id () const |
| Return model ID of the node. | |
| bool | is_frozen () const |
| Returns true if node is frozen, i.e., shall not be updated. | |
| bool | node_uses_wfr () const |
| Returns true if the node uses the waveform relaxation method. | |
| void | set_node_uses_wfr (const bool) |
| Sets node_uses_wfr_ member variable (to be able to set it to "true" for any class derived from Node). | |
| void | init () |
| Initialize node prior to first simulation after node has been created. | |
| virtual void | pre_run_hook ()=0 |
| Re-calculate dependent parameters of the node. | |
| virtual void | calibrate_time (const TimeConverter &) |
| Re-calculate time-based properties of the node. | |
| virtual void | post_run_cleanup () |
| Cleanup node after Run. | |
| virtual void | finalize () |
| Finalize node. | |
| virtual void | update (Time const &, const long, const long)=0 |
| Advance the state of the node in time through the given interval. | |
| virtual bool | wfr_update (Time const &, const long, const long) |
| Advance the state of the node in time through the given interval (see Node::update() for more details). | |
| virtual size_t | send_test_event (Node &receiving_node, size_t receptor_type, synindex syn_id, bool dummy_target) |
| Send an event to the receiving_node passed as an argument. | |
| virtual size_t | handles_test_event (SpikeEvent &, size_t receptor_type) |
| Check if the node can handle a particular event and receptor type. | |
| virtual size_t | handles_test_event (WeightCorrectionEvent &, size_t receptor_type) |
| virtual size_t | handles_test_event (WeightRecorderEvent &, size_t receptor_type) |
| virtual size_t | handles_test_event (RateEvent &, size_t receptor_type) |
| virtual size_t | handles_test_event (DataLoggingRequest &, size_t receptor_type) |
| virtual size_t | handles_test_event (CurrentEvent &, size_t receptor_type) |
| virtual size_t | handles_test_event (ConductanceEvent &, size_t receptor_type) |
| virtual size_t | handles_test_event (DoubleDataEvent &, size_t receptor_type) |
| virtual size_t | handles_test_event (DSSpikeEvent &, size_t receptor_type) |
| virtual size_t | handles_test_event (DSCurrentEvent &, size_t receptor_type) |
| virtual size_t | handles_test_event (GapJunctionEvent &, size_t receptor_type) |
| virtual size_t | handles_test_event (InstantaneousRateConnectionEvent &, size_t receptor_type) |
| virtual size_t | handles_test_event (DiffusionConnectionEvent &, size_t receptor_type) |
| virtual size_t | handles_test_event (DelayedRateConnectionEvent &, size_t receptor_type) |
| virtual size_t | handles_test_event (LearningSignalConnectionEvent &, size_t receptor_type) |
| virtual size_t | handles_test_event (SICEvent &, size_t receptor_type) |
| virtual void | sends_secondary_event (GapJunctionEvent &ge) |
| Required to check, if source neuron may send a SecondaryEvent. | |
| virtual void | sends_secondary_event (InstantaneousRateConnectionEvent &re) |
| Required to check, if source neuron may send a SecondaryEvent. | |
| virtual void | sends_secondary_event (DiffusionConnectionEvent &de) |
| Required to check, if source neuron may send a SecondaryEvent. | |
| virtual void | sends_secondary_event (DelayedRateConnectionEvent &re) |
| Required to check, if source neuron may send a SecondaryEvent. | |
| virtual void | sends_secondary_event (LearningSignalConnectionEvent &re) |
| Required to check if source node may send a LearningSignalConnectionEvent. | |
| virtual void | sends_secondary_event (SICEvent &sic) |
| Required to check if source node may send a SICEvent. | |
| virtual void | register_stdp_connection (double, double, double) |
| Register a STDP connection. | |
| virtual bool | supports_axonal_delay_corrections () const |
| Whether this model can be the target of a synapse with predominantly axonal delay. | |
| virtual void | register_eprop_connection () |
| Registers an eprop connection. | |
| virtual void | initialize_update_history () |
| Initializes the update history. | |
| virtual long | get_shift () const |
| Retrieves the temporal shift of the signal. | |
| virtual void | write_update_to_history (const long t_previous_update, const long t_current_update, const bool is_flush_event, const bool previous_was_flush_event) |
| Registers the current update in the update history and deregisters the previous update. | |
| virtual void | erase_used_eprop_history () |
| Erases used e-prop history for bsshslm_2020 models. | |
| virtual void | erase_used_eprop_history (const long t_spike, const long t_spike_previous) |
| Erases used e-prop history based on inter-spike interval. | |
| virtual bool | is_eprop_recurrent_node () const |
| Checks if the node is part of the recurrent network and thus not a readout neuron. | |
| virtual void | handle (SpikeEvent &e) |
| Handle incoming spike events. | |
| virtual void | handle (WeightCorrectionEvent &) |
| virtual void | handle (WeightRecorderEvent &e) |
| Handle incoming weight recording events. | |
| virtual void | handle (RateEvent &e) |
| Handler for rate events. | |
| virtual void | handle (DataLoggingRequest &e) |
| Handler for universal data logging request. | |
| virtual void | handle (DataLoggingReply &e) |
| Handler for universal data logging request. | |
| virtual void | handle (CurrentEvent &e) |
| Handler for current events. | |
| virtual void | handle (ConductanceEvent &e) |
| Handler for conductance events. | |
| virtual void | handle (DoubleDataEvent &e) |
| Handler for DoubleData events. | |
| virtual void | handle (GapJunctionEvent &e) |
| Handler for gap junction events. | |
| virtual void | handle (InstantaneousRateConnectionEvent &e) |
| Handler for rate neuron events. | |
| virtual void | handle (DiffusionConnectionEvent &e) |
| Handler for rate neuron events. | |
| virtual void | handle (DelayedRateConnectionEvent &e) |
| Handler for delay rate neuron events. | |
| virtual void | handle (LearningSignalConnectionEvent &e) |
| Handler for learning signal connection events. | |
| virtual void | handle (SICEvent &e) |
| Handler for slow inward current events (SICEvents). | |
| virtual double | get_K_value (double t) |
| return the Kminus value at t (in ms). | |
| virtual double | get_LTD_value (double t) |
| virtual void | get_K_values (double t, double &Kminus, double &nearest_neighbor_Kminus, double &Kminus_triplet) |
| write the Kminus, nearest_neighbor_Kminus, and Kminus_triplet values at t (in ms) to the provided locations. | |
| virtual void | get_history (double t1, double t2, std::deque< histentry >::iterator *start, std::deque< histentry >::iterator *finish) |
| return the spike history for (t1,t2]. | |
| virtual void | get_LTP_history (double t1, double t2, std::deque< histentry_extended >::iterator *start, std::deque< histentry_extended >::iterator *finish) |
| virtual void | get_urbanczik_history (double t1, double t2, std::deque< histentry_extended >::iterator *start, std::deque< histentry_extended >::iterator *finish, int) |
| virtual double | get_C_m (int comp) |
| virtual double | get_g_L (int comp) |
| virtual double | get_tau_L (int comp) |
| virtual double | get_tau_s (int comp) |
| virtual double | get_tau_syn_ex (int comp) |
| virtual double | get_tau_syn_in (int comp) |
| virtual void | compute_gradient (const long t_spike, const long t_spike_previous, double &z_previous_buffer, double &z_bar, double &e_bar, double &e_bar_reg, double &epsilon, double &weight, const CommonSynapseProperties &cp, WeightOptimizer *optimizer, bool is_flush_event, bool previous_was_flush_event, double &sum_grad, long &remaining_steps_until_cutoff, long &decay_steps) |
| Compute gradient change for eprop synapses. | |
| virtual double | compute_gradient (std::vector< long > &presyn_isis, const long t_previous_update, const long t_previous_trigger_spike, const double kappa, const bool average_gradient) |
| Compute gradient change for eprop synapses. | |
| virtual void | event_hook (DSSpikeEvent &) |
| Modify Event object parameters during event delivery. | |
| virtual void | event_hook (DSCurrentEvent &) |
| void | set_thread (size_t) |
| Store the number of the thread to which the node is assigned. | |
| size_t | get_thread () const |
| Retrieve the number of the thread to which the node is assigned. | |
| void | set_vp (size_t) |
| Store the number of the virtual process to which the node is assigned. | |
| size_t | get_vp () const |
| Retrieve the number of the virtual process to which the node is assigned. | |
| void | set_model_id (int) |
| Set the model id. | |
| void | set_initialized () |
| Execute post-initialization actions in node models. | |
| virtual SignalType | sends_signal () const |
| virtual SignalType | receives_signal () const |
| Dictionary | get_status_base () |
| Return a dictionary with the node's properties. | |
| void | set_status_base (const Dictionary &) |
| Set status dictionary of a node. | |
| bool | is_model_prototype () const |
| Returns true if node is model prototype. | |
| void | set_thread_lid (const size_t) |
| set thread local index | |
| size_t | get_thread_lid () const |
| get thread local index | |
| virtual void | set_local_device_id (const size_t lsdid) |
| Sets the local device id. | |
| virtual size_t | get_local_device_id () const |
| Gets the local device id. | |
| void | set_tmp_nc_index (size_t index) |
| Set index in node collection; required by ThirdOutBuilder. | |
| size_t | get_tmp_nc_index () |
| Return and invalidate index in node collection; required by ThirdOutBuilder. | |
Protected Member Functions | |
| void | pre_run_hook_ () |
| void | clear_expired_correction_entries_stdp_ax_delay_ (const size_t lag) |
| Retire the correction entries which are no longer critical in the given time slot. | |
| size_t | correct_synapses_stdp_ax_delay_ (const Time &t_spike) |
| Triggered when this neuron spikes, to correct all relevant incoming STDP synapses with predominantly axonal delays and corresponding received spikes. | |
| Protected Member Functions inherited from nest::StructuralPlasticityNode | |
| void | set_spiketime (Time const &t_sp, double offset=0.0) |
| Record spike history. | |
| void | clear_history () |
| Clear spike history. | |
| Protected Member Functions inherited from nest::Node | |
| virtual void | init_state_ () |
| Configure state variables depending on runtime information. | |
| virtual void | init_buffers_ () |
| Configure persistent internal data structures. | |
| virtual void | set_initialized_ () |
| Model & | get_model_ () const |
| void | set_frozen_ (bool frozen) |
| Mark node as frozen. | |
| template<typename ConcreteNode> | |
| const ConcreteNode & | downcast (const Node &) |
| Auxiliary function to downcast a Node to a concrete class derived from Node. | |
Private Attributes | |
| std::vector< std::vector< CorrectionEntrySTDPAxDelay > > | correction_entries_stdp_ax_delay_ |
| Buffer of correction entries sorted by t_spike_pre + delay (i.e., the actual arrival time at this neuron). | |
| bool | has_predominant_stdp_ax_delay_ |
| false by default and set to true if any incoming connection has predominant axonal delays | |
Additional Inherited Members | |
| Public Attributes inherited from nest::Node | |
| DeprecationWarning | deprecation_warning |
| Member of DeprecationWarning class to be used by models if parameters are deprecated. | |
A node which buffers the information needed to retrospectively correct incoming STDP synapses with predominantly axonal delays.
Due to the long axonal delays, relevant spikes of this neuron might not yet be available at the time when incoming synapses are updated (spike delivery). Therefore, for each spike received through an STDP synapse with predominantly axonal delay, information is stored for a short period of time allowing for retrospective correction of the synapse and the already delivered spike.
This is deliberately kept separate from ArchivingNode, which archives post-synaptic spike history: the two concerns are independent, and a model can support axonal delays without inheriting the spike history (as NESTML-generated models do, which derive from StructuralPlasticityNode and generate their own archiving code).
A model that derives from this class only supports being the target of a synapse with predominantly axonal delay if it additionally
| nest::AxonalDelayArchivingNode::AxonalDelayArchivingNode | ( | ) |
References has_predominant_stdp_ax_delay_, and nest::StructuralPlasticityNode::StructuralPlasticityNode().
Referenced by nest::ArchivingNode::ArchivingNode(), nest::ArchivingNode::ArchivingNode(), and AxonalDelayArchivingNode().
| nest::AxonalDelayArchivingNode::AxonalDelayArchivingNode | ( | const AxonalDelayArchivingNode & | n | ) |
References AxonalDelayArchivingNode(), has_predominant_stdp_ax_delay_, and nest::StructuralPlasticityNode::StructuralPlasticityNode().
| void nest::AxonalDelayArchivingNode::add_correction_entry_stdp_ax_delay | ( | SpikeEvent & | spike_event, |
| const double | t_last_pre_spike, | ||
| const double | weight_revert, | ||
| const double | new_weight, | ||
| const double | K_plus_revert, | ||
| const double | time_while_critical ) |
Buffer a correction entry for the critical time window.
| spike_event | Incoming pre-synaptic spike which could potentially need a correction after the next post-synaptic spike. |
| t_last_pre_spike | The time of the last pre-synaptic spike that was processed before the current one. |
| weight_revert | The synaptic weight before depression after facilitation as baseline for potential later correction. |
| new_weight | The synaptic weight after the spike was transmitted, i.e., the weight the synapse is left with if no correction follows. |
| K_plus_revert | The pre-synaptic trace before the possibly incorrect facilitation. |
| time_while_critical | The number of time steps until the spike no longer needs to be corrected. |
References correction_entries_stdp_ax_delay_, nest::Time::delay_ms_to_steps(), nest::KernelManager::event_delivery_manager, nest::SpikeData::get_lcid(), nest::EventDeliveryManager::get_modulo(), nest::Time::get_ms(), nest::Event::get_sender_spike_data(), nest::Event::get_stamp(), nest::SpikeData::get_syn_id(), and nest::kernel().
Referenced by nest::stdp_pl_synapse_hom_ax_delay< targetidentifierT >::send().
|
protected |
Retire the correction entries which are no longer critical in the given time slot.
References correction_entries_stdp_ax_delay_, nest::KernelManager::event_delivery_manager, nest::EventDeliveryManager::get_modulo(), has_predominant_stdp_ax_delay_, and nest::kernel().
Referenced by nest::iaf_psc_alpha::update(), nest::iaf_psc_delta::update(), nest::iaf_psc_exp::update(), and nest::parrot_neuron::update().
|
protected |
Triggered when this neuron spikes, to correct all relevant incoming STDP synapses with predominantly axonal delays and corresponding received spikes.
References nest::KernelManager::connection_manager, nest::ConnectionManager::correct_weight_stdp_ax_delay(), correction_entries_stdp_ax_delay_, nest::KernelManager::event_delivery_manager, nest::ConnectionManager::get_max_delay(), nest::EventDeliveryManager::get_modulo(), nest::SimulationManager::get_slice_origin(), nest::Time::get_steps(), nest::Node::get_thread(), has_predominant_stdp_ax_delay_, nest::kernel(), and nest::KernelManager::simulation_manager.
Referenced by nest::ArchivingNode::set_spiketime().
|
protected |
Allocate or resize the correction buffer if the delay extrema changed since the last run. The buffer is only allocated for nodes with incoming connections with predominantly axonal delay.
References nest::KernelManager::connection_manager, correction_entries_stdp_ax_delay_, nest::ConnectionManager::get_max_delay(), nest::ConnectionManager::get_min_delay(), has_predominant_stdp_ax_delay_, and nest::kernel().
Referenced by nest::iaf_psc_alpha::pre_run_hook(), nest::iaf_psc_delta::pre_run_hook(), nest::iaf_psc_exp::pre_run_hook(), and nest::parrot_neuron::pre_run_hook().
| void nest::AxonalDelayArchivingNode::register_axonal_delay_connection | ( | const double | dendritic_delay, |
| const double | axonal_delay ) |
Register a new incoming STDP connection, so this node knows whether it has to maintain correction entries at all.
Nodes which also archive post-synaptic spike history reach this through ArchivingNode::register_stdp_connection(); nodes which do not have to call it themselves.
References has_predominant_stdp_ax_delay_.
Referenced by nest::ArchivingNode::register_stdp_connection().
| void nest::AxonalDelayArchivingNode::update_weight_revert | ( | const size_t | lcid, |
| const double | weight_revert ) |
In case a correction is applied for a pre-synaptic spike, any other pre-synaptic spikes from the same synapse need to be informed of the new base weight to revert to for the correction.
References correction_entries_stdp_ax_delay_.
Referenced by nest::stdp_pl_synapse_hom_ax_delay< targetidentifierT >::correct_weight_stdp_ax_delay().
|
private |
Buffer of correction entries sorted by t_spike_pre + delay (i.e., the actual arrival time at this neuron).
Referenced by add_correction_entry_stdp_ax_delay(), clear_expired_correction_entries_stdp_ax_delay_(), correct_synapses_stdp_ax_delay_(), pre_run_hook_(), and update_weight_revert().
|
private |
false by default and set to true if any incoming connection has predominant axonal delays
Referenced by AxonalDelayArchivingNode(), AxonalDelayArchivingNode(), clear_expired_correction_entries_stdp_ax_delay_(), correct_synapses_stdp_ax_delay_(), pre_run_hook_(), and register_axonal_delay_connection().