A high performance implementation of Numenta's HTM algorithms
Project description
PyEtaler
This is the offical Python binding for Etaler. PyEtaler generates Python binging using cppyy and adds additional feature on top of the automatically generated bindings.
Note: As of now, installing cppyy (thus PyEtaler) will cause ROOT to fail to load due to dependency clash.
Building from source
Note: You must have Etaler and cppyy installed globally before building the binding. Note: Since the binding is generated to load the actual Etaler installation. You'll need to re-compile the binding everytime Etaler is updated.
pip install cppyy # must installed globally
python3 genbinding.py
Installation
Please copy the files to the proper location for now. We're still working on a PyPI package.
Usage
>>> from etaler import et
>>> et.ones([2, 2])
{{ 1, 1},
{ 1, 1}}
>>> sp = et.SpatialPooler([128], [32])
>>> x = et.encoder.scalar(0.1, 0, 1, 128, 12)
>>> sp.compute(x)
{ 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.