Skip to content

Commit 9a2cc55

Browse files
Merge pull request #638 from BindsNET/hananel
poetry update
2 parents 847af16 + 380a272 commit 9a2cc55

File tree

5 files changed

+688
-1029
lines changed

5 files changed

+688
-1029
lines changed

.github/workflows/python-app.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v3
1919
- name: Set up Python 3.9
20-
uses: actions/setup-python@v2
20+
uses: actions/setup-python@v4
2121
with:
2222
python-version: 3.9
2323
- name: Install Poetry
2424
env:
25-
POETRY_VERSION: 1.4.2
25+
POETRY_VERSION: 1.5.1
2626
run: |
27-
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python - &&\
27+
curl -sSL https://install.python-poetry.org | python - -y &&\
2828
poetry config virtualenvs.create false
2929
- name: Install dependencies
3030
run: |

.github/workflows/pythonpackage.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ jobs:
99
strategy:
1010
max-parallel: 4
1111
matrix:
12-
python-version: [3.8, 3.9, '3.10']
12+
python-version: ["3.8", "3.9", "3.10"]
1313

1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v3
1616
- name: Set up Python ${{ matrix.python-version }}
17-
uses: actions/setup-python@v2
17+
uses: actions/setup-python@v4
1818
with:
1919
python-version: ${{ matrix.python-version }}
2020
- name: Install Poetry
2121
env:
22-
POETRY_VERSION: 1.4.2
22+
POETRY_VERSION: 1.5.1
2323
run: |
24-
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python - &&\
24+
curl -sSL https://install.python-poetry.org | python - -y &&\
2525
poetry config virtualenvs.create false
2626
- name: Install dependencies
2727
run: |

bindsnet/models/models.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ def __init__(
106106
theta_plus: float = 0.05,
107107
tc_theta_decay: float = 1e7,
108108
inpt_shape: Optional[Iterable[int]] = None,
109+
inh_thresh: float = -40.0,
110+
exc_thresh: float = -52.0,
109111
) -> None:
110112
# language=rst
111113
"""
@@ -148,7 +150,7 @@ def __init__(
148150
traces=True,
149151
rest=-65.0,
150152
reset=-60.0,
151-
thresh=-52.0,
153+
thresh=exc_thresh,
152154
refrac=5,
153155
tc_decay=100.0,
154156
tc_trace=20.0,
@@ -160,7 +162,7 @@ def __init__(
160162
traces=False,
161163
rest=-60.0,
162164
reset=-45.0,
163-
thresh=-40.0,
165+
thresh=inh_thresh,
164166
tc_decay=10.0,
165167
refrac=2,
166168
tc_trace=20.0,
@@ -223,6 +225,7 @@ def __init__(
223225
theta_plus: float = 0.05,
224226
tc_theta_decay: float = 1e7,
225227
inpt_shape: Optional[Iterable[int]] = None,
228+
exc_thresh: float = -52.0,
226229
) -> None:
227230
# language=rst
228231
"""
@@ -264,7 +267,7 @@ def __init__(
264267
traces=True,
265268
rest=-65.0,
266269
reset=-60.0,
267-
thresh=-52.0,
270+
thresh=exc_thresh,
268271
refrac=5,
269272
tc_decay=100.0,
270273
tc_trace=20.0,
@@ -323,6 +326,7 @@ def __init__(
323326
theta_plus: float = 0.05,
324327
tc_theta_decay: float = 1e7,
325328
inpt_shape: Optional[Iterable[int]] = None,
329+
exc_thresh: float = -52.0,
326330
) -> None:
327331
# language=rst
328332
"""
@@ -366,7 +370,7 @@ def __init__(
366370
traces=True,
367371
rest=-65.0,
368372
reset=-60.0,
369-
thresh=-52.0,
373+
thresh=exc_thresh,
370374
refrac=5,
371375
tc_decay=100.0,
372376
tc_trace=20.0,
@@ -432,6 +436,7 @@ def __init__(
432436
wmin: float = 0.0,
433437
wmax: float = 1.0,
434438
norm: Optional[float] = 0.2,
439+
exc_thresh: float = -52.0,
435440
) -> None:
436441
# language=rst
437442
"""
@@ -495,7 +500,7 @@ def __init__(
495500
traces=True,
496501
rest=-65.0,
497502
reset=-60.0,
498-
thresh=-52.0,
503+
thresh=exc_thresh,
499504
refrac=5,
500505
tc_decay=100.0,
501506
tc_trace=20.0,

0 commit comments

Comments
 (0)