Skip to content

Commit 669da13

Browse files
authored
Merge branch 'main' into v3
2 parents 061c389 + 9ce44f8 commit 669da13

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ ngc-learn requires:
3232
1) Python (>=3.10)
3333
2) NumPy (>=1.22.0)
3434
3) SciPy (>=1.7.0)
35-
4) ngcsimlib (>=2.0.0), (visit official page <a href="https://github.com/NACLab/ngc-sim-lib">here</a>)
35+
4) ngcsimlib (>=3.0.0), (visit official page <a href="https://github.com/NACLab/ngc-sim-lib">here</a>)
3636
5) JAX (>=0.4.28) (to enable GPU use, make sure to install one of the CUDA variants)
3737
<!--
3838
5) scikit-learn (>=1.3.1) if using `ngclearn.utils.density`
@@ -42,7 +42,7 @@ ngc-learn requires:
4242
-->
4343

4444
---
45-
ngc-learn 3.0.0 and later require Python 3.10 or newer as well as ngcsimlib >=2.0.0.
45+
ngc-learn 3.0.0 and later require Python 3.10 or newer as well as ngcsimlib >=3.0.0.
4646
ngc-learn's plotting capabilities (routines within `ngclearn.utils.viz`) require
4747
Matplotlib (>=3.8.0) and imageio (>=2.31.5) and both plotting and density estimation
4848
tools (routines within ``ngclearn.utils.density``) will require Scikit-learn (>=0.24.2).

docs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ matplotlib>=3.8.0
88
jax>=0.4.28
99
jaxlib>=0.4.28
1010
imageio>=2.31.5
11-
ngcsimlib>=1.0.0
11+
ngcsimlib>=1.0.1

docs/tutorials/neurocog/hodgkin_huxley_cell.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ essentially probability values:
6868
`m` ($\mathbf{m}_t$) for the probability of sodium channel subunit activation, and
6969
`h` ($\mathbf{h}_t$) for the probability of sodium channel subunit inactivation.
7070

71-
neurons and muscle cells. It is a continuous-time dynamical system.
72-
7371
Formally, the core dynamics of the H-H cell can be written out as follows:
7472

7573
$$

ngclearn/utils/model_utils.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,10 +515,13 @@ def d_sigmoid(x):
515515
sigm_x = nn.sigmoid(x) ## pre-compute once
516516
return sigm_x * (1. - sigm_x)
517517

518+
def inverse_sigmoid(x, clip_bound=0.03): ## wrapper call for naming convention ease
519+
return inverse_logistic(x, clip_bound=clip_bound)
520+
518521
@jit
519-
def inverse_logistic(x, clip_bound=0.03): # 0.03
522+
def inverse_logistic(x, clip_bound=0.03):
520523
"""
521-
The inverse logistic link - logit function.
524+
The inverse logistic link - the logit function.
522525
523526
Args:
524527
x: data to transform via inverse logistic function

0 commit comments

Comments
 (0)