23#ifndef EPROP_READOUT_H
24#define EPROP_READOUT_H
293 void update(
Time const&,
const long,
const long )
override;
484 if ( receptor_type != 0 )
495 if ( receptor_type != 0 )
507 size_t model_id = e.get_sender().get_model_id();
512 "eprop_readout neurons expect a connection with a step_rate_generator node through receptor_type "
521 return receptor_type;
527 if ( receptor_type != 0 )
559 const double delta_EL = ptmp.
set( d,
this );
560 stmp.
set( d, ptmp, delta_EL,
this );
Dictionary class for interface to Python and C++ API.
Definition dictionary.h:213
Class containing the common properties for all connections of a certain type.
Definition common_synapse_properties.h:50
Event for electrical currents.
Definition event.h:569
Request data to be logged/logged data to be sent.
Definition event.h:636
Event for rate model connections with delay.
Definition secondary_event.h:331
Class implementing an intermediate archiving node model for readout node models supporting e-prop pla...
Definition eprop_archiving_node_readout.h:43
void get_status(Dictionary &d) const override
Export properties of the node by setting entries in the status dictionary.
Definition eprop_archiving_node_readout.h:87
void set_status(const Dictionary &d) override
Change properties of the node according to the entries in the dictionary.
Definition eprop_archiving_node_readout.h:97
const long delay_in_rec_
Transmission delay from input to recurrent neurons.
Definition eprop_archiving_node.h:171
const long offset_gen_
Offset since generator signals start from time step 1.
Definition eprop_archiving_node.h:168
To be thrown if a connection is not possible.
Definition exceptions.h:490
Event for learning signal connections.
Definition secondary_event.h:384
size_t get_node_model_id(const std::string) const
Definition model_manager.cpp:310
Base class for all NEST network objects.
Definition node.h:99
std::string get_name() const
Return class name.
Definition node.cpp:105
Map names of recordables to data access functions.
Definition recordables_map.h:61
Buffer Layout.
Definition ring_buffer.h:83
Event for spike information.
Definition event.h:418
Definition nest_time.h:135
Exception to be thrown if the specified receptor type does not exist in the node.
Definition exceptions.h:417
Base class implementing a weight optimizer model.
Definition weight_optimizer.h:238
Class implementing a readout neuron model for e-prop plasticity with additional biological features.
Definition eprop_readout.h:252
double get_v_m_() const
Get the current value of the membrane voltage.
Definition eprop_readout.h:425
State_ S_
Structure of state variables.
Definition eprop_readout.h:457
void sends_secondary_event(DelayedRateConnectionEvent &) override
Required to check, if source neuron may send a SecondaryEvent.
Definition eprop_readout.h:272
static const size_t MIN_RATE_RECEPTOR
Minimal spike receptor type.
Definition eprop_readout.h:413
void set_status(const Dictionary &) override
Change properties of the node according to the entries in the dictionary.
Definition eprop_readout.h:551
void update(Time const &, const long, const long) override
Advance the state of the node in time through the given interval.
Definition eprop_readout.cpp:203
double get_readout_signal_() const
Get the current value of the normalized readout signal.
Definition eprop_readout.h:432
void pre_run_hook() override
Re-calculate dependent parameters of the node.
Definition eprop_readout.cpp:188
eprop_readout()
Default constructor.
Definition eprop_readout.cpp:158
void init_buffers_() override
Configure persistent internal data structures.
Definition eprop_readout.cpp:180
Variables_ V_
Structure of internal variables.
Definition eprop_readout.h:460
size_t handles_test_event(SpikeEvent &, size_t) override
Check if the node can handle a particular event and receptor type.
Definition eprop_readout.h:482
RateSynapseTypes
Enumeration of spike receptor types.
Definition eprop_readout.h:417
@ LEARNING_WINDOW_SIG
Definition eprop_readout.h:418
@ TARGET_SIG
Definition eprop_readout.h:419
@ SUP_RATE_RECEPTOR
Definition eprop_readout.h:420
void sends_secondary_event(LearningSignalConnectionEvent &) override
Required to check if source node may send a LearningSignalConnectionEvent.
Definition eprop_readout.h:267
Buffers_ B_
Structure of buffers.
Definition eprop_readout.h:463
static RecordablesMap< eprop_readout > recordablesMap_
Map storing a static set of recordables.
Definition eprop_readout.h:466
long get_shift() const override
Retrieves the temporal shift of the signal.
Definition eprop_readout.h:470
void compute_gradient(const long, const long, double &, double &, double &, double &, double &, double &, const CommonSynapseProperties &, WeightOptimizer *, const bool, const bool, double &, long &, long &) override
Compute gradient change for eprop synapses.
Definition eprop_readout.cpp:293
friend class UniversalDataLogger< eprop_readout >
Logger for universal data supporting the data logging request / reply mechanism. Populated with a rec...
Definition eprop_readout.h:318
void get_status(Dictionary &) const override
Export properties of the node by setting entries in the status dictionary.
Definition eprop_readout.h:536
bool is_eprop_recurrent_node() const override
Checks if the node is part of the recurrent network and thus not a readout neuron.
Definition eprop_readout.h:476
void handle(SpikeEvent &) override
Handle incoming spike events.
Definition eprop_readout.cpp:269
Parameters_ P_
Structure of parameters.
Definition eprop_readout.h:454
double get_error_signal_() const
Get the current value of the error signal.
Definition eprop_readout.h:446
double get_target_signal_() const
Get the current value of the target signal.
Definition eprop_readout.h:439
ModelManager model_manager
Definition kernel_manager.h:243
virtual size_t handles_test_event(SpikeEvent &, size_t receptor_type)
Check if the node can handle a particular event and receptor type.
Definition node.cpp:271
virtual void sends_secondary_event(GapJunctionEvent &ge)
Required to check, if source neuron may send a SecondaryEvent.
Definition node.cpp:381
virtual void handle(SpikeEvent &e)
Handle incoming spike events.
Definition node.cpp:265
const std::string recordables("recordables")
const std::string receptor_types("receptor_types")
const std::string eprop_learning_window("eprop_learning_window")
const std::string target_signal("target_signal")
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33
KernelManager & kernel()
Definition kernel_manager.h:311
void register_eprop_readout(const std::string &name)
Definition eprop_readout.cpp:43
Structure of buffers.
Definition eprop_readout.h:384
RingBuffer currents_
Buffer for incoming currents.
Definition eprop_readout.h:395
RingBuffer spikes_
Buffer for incoming spikes.
Definition eprop_readout.h:392
UniversalDataLogger< eprop_readout > logger_
Logger for universal data.
Definition eprop_readout.h:398
Structure of parameters.
Definition eprop_readout.h:322
void get(Dictionary &) const
Get the parameters and their values.
Definition eprop_readout.cpp:104
double set(const Dictionary &, Node *)
Set the parameters and throw errors in case of invalid values.
Definition eprop_readout.cpp:114
double I_e_
Constant external input current (pA).
Definition eprop_readout.h:330
double C_m_
Capacitance of the membrane (pF).
Definition eprop_readout.h:324
double V_min_
Absolute lower bound of the membrane voltage relative to the leak membrane potential (mV).
Definition eprop_readout.h:336
Parameters_()
Default constructor.
Definition eprop_readout.cpp:69
double tau_m_
Time constant of the membrane (ms).
Definition eprop_readout.h:333
double E_L_
Leak / resting membrane potential (mV).
Definition eprop_readout.h:327
Structure of state variables.
Definition eprop_readout.h:350
State_()
Default constructor.
Definition eprop_readout.cpp:78
double learning_window_signal_
Signal indicating whether the readout neurons are in a learning phase.
Definition eprop_readout.h:361
double readout_signal_
Readout signal. Leaky integrated spikes emitted by the recurrent network.
Definition eprop_readout.h:355
double error_signal_
Error signal. Deviation between the readout and the target signal.
Definition eprop_readout.h:352
double z_in_
Binary input spike state variable - 1.0 if the neuron has spiked in the previous time step and 0....
Definition eprop_readout.h:370
double target_signal_
Target / teacher signal that the network is supposed to learn.
Definition eprop_readout.h:358
void get(Dictionary &, const Parameters_ &) const
Get the state variables and their values.
Definition eprop_readout.cpp:140
double i_in_
Input current (pA).
Definition eprop_readout.h:364
double v_m_
Membrane voltage relative to the leak membrane potential (mV).
Definition eprop_readout.h:367
void set(const Dictionary &, const Parameters_ &, double, Node *)
Set the state variables.
Definition eprop_readout.cpp:149
Structure of internal variables.
Definition eprop_readout.h:403
double P_v_m_
Propagator matrix entry for evolving the membrane voltage (mathematical symbol "kappa" in user docume...
Definition eprop_readout.h:405
double P_i_in_
Propagator matrix entry for evolving the incoming currents.
Definition eprop_readout.h:408