Skip to content

Commit d5b350a

Browse files
author
Alexander Ororbia
committed
cleaned-up/revised leaky-noise-cell
1 parent f72a063 commit d5b350a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

ngclearn/components/neurons/graded/leakyNoiseCell.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,23 @@ class LeakyNoiseCell(JaxComponent): ## Real-valued, leaky noise cell
2222
2323
The specific differential equation that characterizes this cell is (for adjusting x) is:
2424
25-
| tau_x * dx/dt = -x + j_rec + j_in + sqrt(2 alpha (sigma_rec)^2) * eps
25+
| tau_x * dx/dt = -x + j_rec + j_in + sqrt(2 alpha (sigma_pre)^2) * eps; and,
26+
| r = f(x) + (eps * sigma_post).
2627
| where j_in is the set of incoming input signals
2728
| and j_rec is the set of recurrent input signals
2829
| and eps is a sample of unit Gaussian noise, i.e., eps ~ N(0, 1)
30+
| and f(x) is the rectification function
31+
| and sigma_pre is the pre-rectification noise applied to membrane x
32+
| and sigma_post is the post-rectification noise applied to rates f(x)
2933
3034
| --- Cell Input Compartments: ---
3135
| j_input - input (bottom-up) electrical/stimulus current (takes in external signals)
3236
| j_recurrent - recurrent electrical/stimulus pressure
3337
| --- Cell State Compartments ---
3438
| x - noisy rate activity / current value of state
3539
| --- Cell Output Compartments: ---
36-
| r - post-rectified activity, i.e., fx(x) = relu(x)
40+
| r - post-rectified activity, e.g., fx(x) = relu(x)
41+
| r_prime - post-rectified temporal derivative, e.g., dfx(x) = d_relu(x)
3742
3843
Args:
3944
name: the string name of this cell

0 commit comments

Comments
 (0)