Class implementing a synapse model for e-prop plasticity. More...
#include <eprop_synapse_bsshslm_2020.h>
Classes | |
| class | ConnTestDummyNode |
| Dummy node for testing the connection. More... | |
Public Types | |
| typedef EpropSynapseBSSHSLM2020CommonProperties | CommonPropertiesType |
| Type of the common synapse properties. | |
| typedef Connection< targetidentifierT, TotalDelay > | ConnectionBase |
| Type of the connection base. | |
Public Member Functions | |
| eprop_synapse_bsshslm_2020 () | |
| Default constructor. | |
| ~eprop_synapse_bsshslm_2020 () | |
| Destructor. | |
| eprop_synapse_bsshslm_2020 (const eprop_synapse_bsshslm_2020 &) | |
| Parameterized copy constructor. | |
| eprop_synapse_bsshslm_2020 & | operator= (const eprop_synapse_bsshslm_2020 &) |
| Assignment operator. | |
| eprop_synapse_bsshslm_2020 (eprop_synapse_bsshslm_2020 &&) | |
| Move constructor. | |
| eprop_synapse_bsshslm_2020 & | operator= (eprop_synapse_bsshslm_2020 &&) |
| Move assignment operator. | |
| void | get_status (Dictionary &d) const |
| Get parameter dictionary. | |
| void | set_status (const Dictionary &d, ConnectorModel &cm) |
| Update values in parameter dictionary. | |
| bool | send (Event &e, size_t thread, const EpropSynapseBSSHSLM2020CommonProperties &cp) |
| Send the spike event. | |
| void | check_connection (Node &s, Node &t, const size_t receptor_type, const synindex syn_id, const CommonPropertiesType &cp) |
| Check if the target accepts the event and receptor type requested by the sender. | |
| void | set_weight (const double w) |
| Set the synaptic weight to the provided value. | |
| void | delete_optimizer () |
| Delete optimizer. | |
| double | get_delay_ms () const |
| Return the delay of the connection in ms. | |
| long | get_delay_steps () const |
| Return the delay of the connection in steps. | |
| size_t | get_rport () const |
| Node * | get_target (const size_t tid) const |
| Public Member Functions inherited from nest::Connection< targetidentifierT, TotalDelay > | |
| Connection () | |
| Connection (const Connection< targetidentifierT, TotalDelay > &rhs)=default | |
| Connection & | operator= (const Connection< targetidentifierT, TotalDelay > &rhs)=default |
| std::unique_ptr< SecondaryEvent > | get_secondary_event () |
| Get a pointer to an instance of a SecondaryEvent if this connection supports secondary events. | |
| void | get_status (Dictionary &d) const |
| Get all properties of this connection and put them into a dictionary. | |
| void | set_status (const Dictionary &d, ConnectorModel &cm) |
| Set properties of this connection from the values given in dictionary. | |
| void | check_synapse_params (const Dictionary &d) const |
| Check syn_spec dictionary for parameters that are not allowed with the given connection. | |
| void | calibrate (const TimeConverter &) |
| Calibrate the delay of this connection to the desired resolution. | |
| void | correct_weight_stdp_ax_delay (const size_t tid, CorrectionEntrySTDPAxDelay &entry, const double t_spike_critical_interval_end, const double t_post_spike, const CommonSynapseProperties &) |
| Framework for STDP with predominantly axonal delays: Correct this synapse and the corresponding previously sent spike taking into account a new post-synaptic spike. | |
| double | get_dendritic_delay_ms () const |
| Return the proportion of the transmission delay attributed to the dendrite. | |
| long | get_dendritic_delay_steps () const |
| Return the proportion of the transmission delay attributed to the dendrite. | |
| void | set_dendritic_delay_ms (const double d) |
| Set the proportion of the transmission delay attributed to the dendrite. | |
| void | set_dendritic_delay_steps (const long d) |
| Set the proportion of the transmission delay attributed to the dendrite. | |
| void | set_axonal_delay_ms (const double d) |
| Set the proportion of the transmission delay attributed to the axon. | |
| double | get_axonal_delay_ms () const |
| Get the proportion of the transmission delay attributed to the axon. | |
| void | set_axonal_delay_steps (const long d) |
| Set the proportion of the transmission delay attributed to the axon. | |
| double | get_axonal_delay_steps () const |
| Get the proportion of the transmission delay attributed to the axon. | |
| double | get_delay_ms () const |
| Return the delay of the connection in ms. | |
| long | get_delay_steps () const |
| Return the delay of the connection in steps. | |
| void | set_delay_ms (const double d) |
| Set the delay of the connection. | |
| void | set_delay_steps (const long d) |
| Set the delay of the connection in steps. | |
| long | get_label () const |
| void | trigger_update_weight (const size_t, const std::vector< spikecounter > &, const double, const CommonSynapseProperties &) |
| Triggers an update of a synaptic weight. | |
| Node * | get_target (const size_t tid) const |
| size_t | get_rport () const |
| void | set_source_has_more_targets (const bool more_targets) |
| Sets a flag in the connection to signal that the following connection has the same source. | |
| bool | source_has_more_targets () const |
| Returns a flag denoting whether the connection has source subsequent targets. | |
| void | disable () |
| Disables the synapse. | |
| bool | is_disabled () const |
| Returns a flag denoting if the synapse is disabled. | |
Static Public Attributes | |
| static constexpr bool | supports_flush_event = true |
| Whether this connection type supports flush events. | |
| static constexpr ConnectionModelProperties | properties |
| Properties of the connection model. | |
| Static Public Attributes inherited from nest::Connection< targetidentifierT, TotalDelay > | |
| static constexpr bool | requires_axonal_delay_correction |
| static constexpr ConnectionModelProperties | properties |
| static constexpr bool | supports_flush_event |
Private Attributes | |
| double | weight_ |
| Synaptic weight. | |
| double | gradient_ |
| Gradient used for the weight update. | |
| long | t_spike_previous_ |
| The time step when the previous spike arrived. | |
| bool | previous_was_flush_event_ |
| Previous event was a flush event. | |
| long | t_previous_update_ |
| The time step when the previous e-prop update was. | |
| long | t_next_update_ |
| The time step when the next e-prop update will be. | |
| long | t_previous_trigger_spike_ |
| The time step when the spike arrived that triggered the previous e-prop update. | |
| double | tau_m_readout_ |
| Time constant for low-pass filtering the eligibility trace. | |
| double | kappa_ |
| Low-pass filter of the eligibility trace. | |
| bool | is_recurrent_to_recurrent_conn_ |
| If this connection is between two recurrent neurons. | |
| std::vector< long > | presyn_isis_ |
| Vector of presynaptic inter-spike-intervals. | |
| WeightOptimizer * | optimizer_ |
| Optimizer. | |
Additional Inherited Members | |
| Protected Member Functions inherited from nest::Connection< targetidentifierT, TotalDelay > | |
| void | check_connection_ (Node &dummy_target, Node &source, Node &target, const synindex syn_id, const size_t receptor_type) |
| This function calls check_connection() on the sender to check if the receiver accepts the event type and receptor type requested by the sender. | |
| Protected Attributes inherited from nest::Connection< targetidentifierT, TotalDelay > | |
| targetidentifierT | target_ |
| bool | more_targets_ |
| bool | disabled_ |
| TotalDelay | delay_ |
Class implementing a synapse model for e-prop plasticity.
Class implementing a synapse model for e-prop plasticity according to Bellec et al. (2020).
| typedef EpropSynapseBSSHSLM2020CommonProperties nest::eprop_synapse_bsshslm_2020< targetidentifierT >::CommonPropertiesType |
Type of the common synapse properties.
| typedef Connection< targetidentifierT, TotalDelay > nest::eprop_synapse_bsshslm_2020< targetidentifierT >::ConnectionBase |
Type of the connection base.
| nest::eprop_synapse_bsshslm_2020< targetidentifierT >::eprop_synapse_bsshslm_2020 | ( | ) |
Default constructor.
References gradient_, is_recurrent_to_recurrent_conn_, kappa_, optimizer_, previous_was_flush_event_, t_next_update_, t_previous_trigger_spike_, t_previous_update_, t_spike_previous_, tau_m_readout_, and weight_.
Referenced by eprop_synapse_bsshslm_2020(), eprop_synapse_bsshslm_2020(), operator=(), and operator=().
| nest::eprop_synapse_bsshslm_2020< targetidentifierT >::~eprop_synapse_bsshslm_2020 | ( | ) |
Destructor.
| nest::eprop_synapse_bsshslm_2020< targetidentifierT >::eprop_synapse_bsshslm_2020 | ( | const eprop_synapse_bsshslm_2020< targetidentifierT > & | es | ) |
Parameterized copy constructor.
References eprop_synapse_bsshslm_2020(), gradient_, is_recurrent_to_recurrent_conn_, kappa_, nest::kernel(), optimizer_, previous_was_flush_event_, t_next_update_, t_previous_trigger_spike_, t_previous_update_, t_spike_previous_, tau_m_readout_, and weight_.
| nest::eprop_synapse_bsshslm_2020< targetidentifierT >::eprop_synapse_bsshslm_2020 | ( | eprop_synapse_bsshslm_2020< targetidentifierT > && | es | ) |
Move constructor.
References eprop_synapse_bsshslm_2020(), gradient_, is_recurrent_to_recurrent_conn_, kappa_, optimizer_, previous_was_flush_event_, t_next_update_, t_previous_trigger_spike_, t_previous_update_, t_spike_previous_, tau_m_readout_, and weight_.
|
inline |
Check if the target accepts the event and receptor type requested by the sender.
References nest::Connection< targetidentifierT, TotalDelay >::check_connection_(), get_delay_steps(), nest::WeightOptimizerCommonProperties::get_optimizer(), nest::Node::initialize_update_history(), optimizer_, nest::EpropSynapseBSSHSLM2020CommonProperties::optimizer_cp_, and nest::Node::register_eprop_connection().
|
inline |
Delete optimizer.
References optimizer_.
|
inline |
Return the delay of the connection in ms.
|
inline |
Return the delay of the connection in steps.
Referenced by check_connection(), and send().
|
inline |
| void nest::eprop_synapse_bsshslm_2020< targetidentifierT >::get_status | ( | Dictionary & | d | ) | const |
Get parameter dictionary.
References nest::Connection< targetidentifierT, TotalDelay >::get_status(), nest::names::optimizer(), optimizer_, nest::names::size_of(), nest::names::tau_m_readout(), tau_m_readout_, nest::names::weight(), and weight_.
|
inline |
| eprop_synapse_bsshslm_2020< targetidentifierT > & nest::eprop_synapse_bsshslm_2020< targetidentifierT >::operator= | ( | const eprop_synapse_bsshslm_2020< targetidentifierT > & | es | ) |
Assignment operator.
References eprop_synapse_bsshslm_2020(), gradient_, is_recurrent_to_recurrent_conn_, kappa_, nest::Connection< targetidentifierT, TotalDelay >::operator=(), optimizer_, previous_was_flush_event_, t_next_update_, t_previous_trigger_spike_, t_previous_update_, t_spike_previous_, tau_m_readout_, and weight_.
| eprop_synapse_bsshslm_2020< targetidentifierT > & nest::eprop_synapse_bsshslm_2020< targetidentifierT >::operator= | ( | eprop_synapse_bsshslm_2020< targetidentifierT > && | es | ) |
Move assignment operator.
References eprop_synapse_bsshslm_2020(), gradient_, is_recurrent_to_recurrent_conn_, kappa_, nest::Connection< targetidentifierT, TotalDelay >::operator=(), optimizer_, previous_was_flush_event_, t_next_update_, t_previous_trigger_spike_, t_previous_update_, t_spike_previous_, tau_m_readout_, and weight_.
| bool nest::eprop_synapse_bsshslm_2020< targetidentifierT >::send | ( | Event & | e, |
| size_t | thread, | ||
| const EpropSynapseBSSHSLM2020CommonProperties & | cp ) |
Send the spike event.
References nest::EpropSynapseBSSHSLM2020CommonProperties::average_gradient_, get_delay_steps(), nest::SimulationManager::get_eprop_update_interval(), get_rport(), nest::Time::get_steps(), get_target(), gradient_, kappa_, nest::kernel(), optimizer_, nest::EpropSynapseBSSHSLM2020CommonProperties::optimizer_cp_, presyn_isis_, previous_was_flush_event_, nest::KernelManager::simulation_manager, t_next_update_, t_previous_trigger_spike_, t_previous_update_, t_spike_previous_, and weight_.
| void nest::eprop_synapse_bsshslm_2020< targetidentifierT >::set_status | ( | const Dictionary & | d, |
| ConnectorModel & | cm ) |
Update values in parameter dictionary.
References nest::Time::get_resolution(), kappa_, nest::names::optimizer(), optimizer_, nest::Connection< targetidentifierT, TotalDelay >::set_status(), nest::names::tau_m_readout(), tau_m_readout_, nest::names::weight(), and weight_.
|
inline |
Set the synaptic weight to the provided value.
References weight_.
|
private |
Gradient used for the weight update.
Referenced by eprop_synapse_bsshslm_2020(), eprop_synapse_bsshslm_2020(), eprop_synapse_bsshslm_2020(), operator=(), operator=(), and send().
|
private |
If this connection is between two recurrent neurons.
Referenced by eprop_synapse_bsshslm_2020(), eprop_synapse_bsshslm_2020(), eprop_synapse_bsshslm_2020(), operator=(), and operator=().
|
private |
Low-pass filter of the eligibility trace.
Referenced by eprop_synapse_bsshslm_2020(), eprop_synapse_bsshslm_2020(), eprop_synapse_bsshslm_2020(), operator=(), operator=(), send(), and set_status().
|
private |
Optimizer.
Referenced by check_connection(), delete_optimizer(), eprop_synapse_bsshslm_2020(), eprop_synapse_bsshslm_2020(), eprop_synapse_bsshslm_2020(), get_status(), operator=(), operator=(), send(), and set_status().
|
private |
Vector of presynaptic inter-spike-intervals.
Referenced by send().
|
private |
Previous event was a flush event.
Referenced by eprop_synapse_bsshslm_2020(), eprop_synapse_bsshslm_2020(), eprop_synapse_bsshslm_2020(), operator=(), operator=(), and send().
|
staticconstexpr |
Properties of the connection model.
|
staticconstexpr |
Whether this connection type supports flush events.
|
private |
The time step when the next e-prop update will be.
Referenced by eprop_synapse_bsshslm_2020(), eprop_synapse_bsshslm_2020(), eprop_synapse_bsshslm_2020(), operator=(), operator=(), and send().
|
private |
The time step when the spike arrived that triggered the previous e-prop update.
Referenced by eprop_synapse_bsshslm_2020(), eprop_synapse_bsshslm_2020(), eprop_synapse_bsshslm_2020(), operator=(), operator=(), and send().
|
private |
The time step when the previous e-prop update was.
Referenced by eprop_synapse_bsshslm_2020(), eprop_synapse_bsshslm_2020(), eprop_synapse_bsshslm_2020(), operator=(), operator=(), and send().
|
private |
The time step when the previous spike arrived.
Referenced by eprop_synapse_bsshslm_2020(), eprop_synapse_bsshslm_2020(), eprop_synapse_bsshslm_2020(), operator=(), operator=(), and send().
|
private |
Time constant for low-pass filtering the eligibility trace.
Referenced by eprop_synapse_bsshslm_2020(), eprop_synapse_bsshslm_2020(), eprop_synapse_bsshslm_2020(), get_status(), operator=(), operator=(), and set_status().
|
private |
Synaptic weight.
Referenced by eprop_synapse_bsshslm_2020(), eprop_synapse_bsshslm_2020(), eprop_synapse_bsshslm_2020(), get_status(), operator=(), operator=(), send(), set_status(), and set_weight().