-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add accuracy tests for precise models lacking them #2314
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good except for two tiny comment typos, see suggestions.
S_.y2_ = | ||
V_.P20_ * ( P_.I_e_ + S_.y0_ ) + V_.P21_ex_ * S_.y1_ex_ + V_.P21_in_ * S_.y1_in_ + S_.y2_ * V_.exp_tau_m_; | ||
// If we use S_.y2_ * std::exp( -V_.h_ms_ / P_.tau_m_ ) instead of | ||
// V_.expm1_tau_m_ * S_.y2_ + S_.y2_ here, the accuracy decrease, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// V_.expm1_tau_m_ * S_.y2_ + S_.y2_ here, the accuracy decrease, | |
// V_.expm1_tau_m_ * S_.y2_ + S_.y2_ here, the accuracy decreases, |
@@ -367,8 +366,11 @@ nest::iaf_psc_exp_ps_lossless::update( const Time& origin, const long from, cons | |||
// update membrane potential | |||
if ( not S_.is_refractory_ ) | |||
{ | |||
// If we use S_.y2_ * std::exp( -V_.h_ms_ / P_.tau_m_ ) instead of | |||
// V_.expm1_tau_m_ * S_.y2_ + S_.y2_ here, the accuracy decrease, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// V_.expm1_tau_m_ * S_.y2_ + S_.y2_ here, the accuracy decrease, | |
// V_.expm1_tau_m_ * S_.y2_ + S_.y2_ here, the accuracy decreases, |
} repeat | ||
endl | ||
|
||
exch | ||
{ | ||
{ exch 24 setw exch <- ( ) <- } forall endl | ||
{ exch 20 setw exch <- ( ) <- } forall endl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this number?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The column width for tabular output.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cheers!
With @jougs PR #2294 I remembered that I started working on issue #1493, extending accuracy testing for precise models, a long time ago. This PR fixes the first part of that issue.
I have added
iaf_psc_exp_ps
andiaf_psc_exp_ps_lossless
totest_iaf_ps_dc_accuracy.sli
andtest_iaf_ps_dc_t_accuracy.sli
. To make the test run, I had to update the models to useexpm1 + 1
instead ofexp
to increase accuracy.It also seemed to me that the setting of
t_spike
foriaf_psc_exp_ps_lossless
was wrong, so I have updated it to fit with the other models.When it comes to the second part of issue #1493:
I am not quite sure how to fix this, but I wanted to already create this PR for the first part of the issue, as it is good to also test the accuracy of
iaf_psc_exp_ps
andiaf_psc_exp_ps_lossless
.