pylca

a package for the leaky competing accumulator


Keywords
cognitive, science
License
MIT
Install
pip install pylca==0.52

Documentation

The leaky, competing, accumulator (LCA)

this is a lightweight python implementation of the leaky, competing, accumulator, based on [1], [2] and [3]. The default is to behave like [2].


how to use

here's an example that you can play with on google colab: Open in Colab

install

its on PyPI, so simply do pip install pylca

note

this implementation...

  • ... allows any non-negative self-excitation. [1, 2] assume self-excitation of the accumulators is zero.
  • ... doesn't terminate the LCA process when the (activity threshold) criterion is met, which is different from [2]. the user can truncate the activity time course post-hoc.
  • ... lower bound the output activity by 0 (i.e. ReLU), like [1, 2]. [3] can do other non-linear transformations
  • ... doesn't perform exponential weighted moving average of the inputs. [3] can do this.

references: