Skip to content

Commit

Permalink
Label c_reg as "coefficient" instead of as "prefactor"
Browse files Browse the repository at this point in the history
  • Loading branch information
akorgor committed Sep 13, 2024
1 parent 6152cbb commit d1744e0
Show file tree
Hide file tree
Showing 17 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion models/eprop_iaf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ eprop_iaf::Parameters_::set( const DictionaryDatum& d, Node* node )

if ( c_reg_ < 0 )
{
throw BadProperty( "Firing rate regularization prefactor c_reg ≥ 0 required." );
throw BadProperty( "Firing rate regularization coefficient c_reg ≥ 0 required." );
}

if ( f_target_ < 0 )
Expand Down
4 changes: 2 additions & 2 deletions models/eprop_iaf.h
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ V_th mV :math:`v_\text{th}` -55.0 Spi
----------------------------------------------------------------------------------------------------------------
Parameter Unit Math equivalent Default Description
=========================== ==== =========================== ================ ==================================
c_reg :math:`c_\text{reg}` 0.0 Prefactor of firing rate
c_reg :math:`c_\text{reg}` 0.0 Coefficient of firing rate
regularization
eprop_isi_trace_cutoff ms :math:`{\Delta t}_\text{c}` maximum value Cutoff for integration of
representable e-prop update between two
Expand Down Expand Up @@ -415,7 +415,7 @@ class eprop_iaf : public EpropArchivingNodeRecurrent
//! Capacitance of the membrane (pF).
double C_m_;

//! Prefactor of firing rate regularization.
//! Coefficient of firing rate regularization.
double c_reg_;

//! Leak / resting membrane potential (mV).
Expand Down
2 changes: 1 addition & 1 deletion models/eprop_iaf_adapt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ eprop_iaf_adapt::Parameters_::set( const DictionaryDatum& d, Node* node )

if ( c_reg_ < 0 )
{
throw BadProperty( "Firing rate regularization prefactor c_reg ≥ 0 required." );
throw BadProperty( "Firing rate regularization coefficient c_reg ≥ 0 required." );
}

if ( f_target_ < 0 )
Expand Down
4 changes: 2 additions & 2 deletions models/eprop_iaf_adapt.h
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ V_th mV :math:`v_\text{th}` -55.0 Spi
----------------------------------------------------------------------------------------------------------------
Parameter Unit Math equivalent Default Description
=========================== ======= =========================== ================ ===============================
c_reg :math:`c_\text{reg}` 0.0 Prefactor of firing rate
c_reg :math:`c_\text{reg}` 0.0 Coefficient of firing rate
regularization
eprop_isi_trace_cutoff ms :math:`{\Delta t}_\text{c}` maximum value Cutoff for integration of
representable e-prop update between two
Expand Down Expand Up @@ -389,7 +389,7 @@ class eprop_iaf_adapt : public EpropArchivingNodeRecurrent
//! Capacitance of the membrane (pF).
double C_m_;

//! Prefactor of firing rate regularization.
//! Coefficient of firing rate regularization.
double c_reg_;

//! Leak / resting membrane potential (mV).
Expand Down
2 changes: 1 addition & 1 deletion models/eprop_iaf_adapt_bsshslm_2020.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ eprop_iaf_adapt_bsshslm_2020::Parameters_::set( const DictionaryDatum& d, Node*

if ( c_reg_ < 0 )
{
throw BadProperty( "Firing rate regularization prefactor c_reg ≥ 0 required." );
throw BadProperty( "Firing rate regularization coefficient c_reg ≥ 0 required." );
}

if ( f_target_ < 0 )
Expand Down
4 changes: 2 additions & 2 deletions models/eprop_iaf_adapt_bsshslm_2020.h
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ V_th mV :math:`v_\text{th}` -55.0 Spi
----------------------------------------------------------------------------------------------------------------
Parameter Unit Math equivalent Default Description
=========================== ======= ======================= ================ ===================================
c_reg :math:`c_\text{reg}` 0.0 Prefactor of firing rate
c_reg :math:`c_\text{reg}` 0.0 Coefficient of firing rate
regularization
f_target Hz :math:`f^\text{target}` 10.0 Target firing rate of rate
regularization
Expand Down Expand Up @@ -348,7 +348,7 @@ class eprop_iaf_adapt_bsshslm_2020 : public EpropArchivingNodeRecurrent
//! Capacitance of the membrane (pF).
double C_m_;

//! Prefactor of firing rate regularization.
//! Coefficient of firing rate regularization.
double c_reg_;

//! Leak / resting membrane potential (mV).
Expand Down
2 changes: 1 addition & 1 deletion models/eprop_iaf_bsshslm_2020.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ eprop_iaf_bsshslm_2020::Parameters_::set( const DictionaryDatum& d, Node* node )

if ( c_reg_ < 0 )
{
throw BadProperty( "Firing rate regularization prefactor c_reg ≥ 0 required." );
throw BadProperty( "Firing rate regularization coefficient c_reg ≥ 0 required." );
}

if ( f_target_ < 0 )
Expand Down
4 changes: 2 additions & 2 deletions models/eprop_iaf_bsshslm_2020.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ V_th mV :math:`v_\text{th}` -55.0 Spi
----------------------------------------------------------------------------------------------------------------
Parameter Unit Math equivalent Default Description
=========================== ======= ======================= ================ ===================================
c_reg :math:`c_\text{reg}` 0.0 Prefactor of firing rate
c_reg :math:`c_\text{reg}` 0.0 Coefficient of firing rate
regularization
f_target Hz :math:`f^\text{target}` 10.0 Target firing rate of rate
regularization
Expand Down Expand Up @@ -327,7 +327,7 @@ class eprop_iaf_bsshslm_2020 : public EpropArchivingNodeRecurrent
//! Capacitance of the membrane (pF).
double C_m_;

//! Prefactor of firing rate regularization.
//! Coefficient of firing rate regularization.
double c_reg_;

//! Leak / resting membrane potential (mV).
Expand Down
2 changes: 1 addition & 1 deletion models/eprop_iaf_psc_delta.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ nest::eprop_iaf_psc_delta::Parameters_::set( const DictionaryDatum& d, Node* nod
updateValueParam< bool >( d, names::refractory_input, with_refr_input_, node );
if ( c_reg_ < 0 )
{
throw BadProperty( "Firing rate regularization prefactor c_reg ≥ 0 required." );
throw BadProperty( "Firing rate regularization coefficient c_reg ≥ 0 required." );
}

if ( f_target_ < 0 )
Expand Down
4 changes: 2 additions & 2 deletions models/eprop_iaf_psc_delta.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ The following parameters can be set in the status dictionary.
-------------------------------------------------------------------------------------------------------------------
Parameter Unit Math equivalent Default Description
=========================== ======= ========================== ================ ===================================
c_reg :math:`c_\text{reg}` 0.0 Prefactor of firing rate
c_reg :math:`c_\text{reg}` 0.0 Coefficient of firing rate
regularization
f_target Hz :math:`f^\text{target}` 10.0 Target firing rate of rate
regularization
Expand Down Expand Up @@ -324,7 +324,7 @@ class eprop_iaf_psc_delta : public EpropArchivingNodeRecurrent
bool with_refr_input_; //!< spikes arriving during refractory period are
//!< counted

//! Prefactor of firing rate regularization.
//! Coefficient of firing rate regularization.
double c_reg_;

//! Target firing rate of rate regularization (spikes/s).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
params_nrn_reg = {
"beta": 1.7, # width scaling of the pseudo-derivative
"C_m": 1.0,
"c_reg": 300.0 / duration["sequence"] * duration["learning_window"], # firing rate regularization scaling
"c_reg": 300.0 / duration["sequence"] * duration["learning_window"], # coefficient of firing rate regularization
"E_L": 0.0,
"eprop_isi_trace_cutoff": 100,
"f_target": 10.0, # spikes/s, target firing rate for firing rate regularization
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@
params_nrn_reg = {
"beta": 1.0, # width scaling of the pseudo-derivative
"C_m": 1.0,
"c_reg": 300.0, # firing rate regularization scaling - 2*learning_window*(TF c_reg) for technical reasons
"c_reg": 300.0, # coefficient of firing rate regularization - 2*learning_window*(TF c_reg) for technical reasons
"E_L": 0.0,
"f_target": 10.0, # spikes/s, target firing rate for firing rate regularization
"gamma": 0.3, # height scaling of the pseudo-derivative
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
params_nrn_rec = {
"beta": 1.7, # width scaling of the pseudo-derivative
"C_m": 1.0,
"c_reg": 2.0 / duration["sequence"], # firing rate regularization scaling
"c_reg": 2.0 / duration["sequence"], # coefficient of firing rate regularization
"E_L": 0.0,
"eprop_isi_trace_cutoff": 100,
"f_target": 10.0, # spikes/s, target firing rate for firing rate regularization
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
"beta": 1.0, # width scaling of the pseudo-derivative
"adapt_tau": 2000.0, # ms, time constant of adaptive threshold
"C_m": 250.0,
"c_reg": 150.0, # firing rate regularization scaling
"c_reg": 150.0, # coefficient of firing rate regularization
"E_L": 0.0,
"f_target": 20.0, # spikes/s, target firing rate for firing rate regularization
"gamma": 0.3, # height scaling of the pseudo-derivative
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
"beta": 1.0, # width scaling of the pseudo-derivative
"adapt_tau": 2000.0, # ms, time constant of adaptive threshold
"C_m": 250.0,
"c_reg": 150.0, # firing rate regularization scaling
"c_reg": 150.0, # coefficient of firing rate regularization
"E_L": 0.0,
"f_target": 20.0, # spikes/s, target firing rate for firing rate regularization
"gamma": 0.3, # height scaling of the pseudo-derivative
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
params_nrn_rec = {
"beta": 33.3, # width scaling of the pseudo-derivative
"C_m": 1.0,
"c_reg": 300.0 / duration["sequence"], # firing rate regularization scaling
"c_reg": 300.0 / duration["sequence"], # coefficient of firing rate regularization
"E_L": 0.0,
"eprop_isi_trace_cutoff": 100,
"f_target": 10.0, # spikes/s, target firing rate for firing rate regularization
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
params_nrn_rec = {
"beta": 1.0, # width scaling of the pseudo-derivative
"C_m": 1.0,
"c_reg": 300.0, # firing rate regularization scaling
"c_reg": 300.0, # coefficient of firing rate regularization
"E_L": 0.0,
"f_target": 10.0, # spikes/s, target firing rate for firing rate regularization
"gamma": 0.3, # height scaling of the pseudo-derivative
Expand Down

0 comments on commit d1744e0

Please sign in to comment.