Skip to content

Commit

Permalink
Fix usage of intercept_width in IA network.
Browse files Browse the repository at this point in the history
Fixes #94.
  • Loading branch information
jgosmann committed Nov 7, 2017
1 parent 3caec79 commit b3a27ee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ Release History
(`#90 <https://github.com/nengo/nengo_spa/pull/90>`_)
- Prevent whitespace from being completely removed in action rules.
(`#92 <https://github.com/nengo/nengo_spa/issues/92`_,
`#93 <https://github.com/nengo/nengo_spa/pull/93)
`#93 <https://github.com/nengo/nengo_spa/pull/93`_)
- Have the ``intercept_width`` argument of ``IA`` actually take effect.
(`#94 <https://github.com/nengo/nengo_spa/issues/94>`_,
`#97 <https://github.com/nengo/nengo_spa/pull/97>`_)


0.3.0 (October 16, 2017)
Expand Down
6 changes: 4 additions & 2 deletions nengo_spa/networks/selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,12 @@ def IA(

with nengo.Network(**kwargs) as net:
net.accumulators = Thresholding(
n_accum_neurons, n_ensembles, threshold=0., radius=radius)
n_accum_neurons, n_ensembles, threshold=0.,
intercept_width=intercept_width, radius=radius)
net.thresholding = Thresholding(
n_thresholding_neurons, n_ensembles, threshold=accum_threshold,
radius=radius, function=lambda x: x > accum_threshold)
intercept_width=intercept_width, radius=radius,
function=lambda x: x > accum_threshold)

nengo.Connection(
net.accumulators.output, net.accumulators.input,
Expand Down

0 comments on commit b3a27ee

Please sign in to comment.