Install HTM - caprivm/thesis_msc GitHub Wiki
Hierarchical Temporal Memory (HTM) is a biologically-constrained theory of intelligence. HTM is not a Deep Learning or Machine Learning technology. It is a machine intelligence framework strictly based on neuroscience and the physiology and interaction of pyramidal neurons in the neocortex of the mammalian brain. If you’re interested in learning more about HTM, visit our educational series HTM School or browse through the topics on HTM Forum. You can also find a collection of research papers at https://numenta.com/papers and a living book authored by Numenta researchers and engineers that documents HTM called Biological and Machine Intelligence (BAMI).
The repository is installed and compiled in a Ubuntu 20.04 LTS operative system. The minimum hardware requirements for free-bug compilation are:
Feature | Value |
---|---|
CPU | 2 |
RAM | 8 GiB |
Disk | 50 GB |
OS Used | Ubuntu 20.04 LTS |
NIC | 1 to Internet |
The htm.core
is a Community Fork of the nupic.core repository with Python bindings. This implements the theory as described in Numenta's BAMI. At time of writing, this is the official repository to implement HTM algorithm. Follow the next steps for installing. First, install essentials.
# Update and upgrade the system
sudo apt update && sudo apt upgrade -y
sudo apt install gcc make cmake perl git -y
Next, install simple python version management: pyenv.
cd && git clone https://github.com/pyenv/pyenv.git ~/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bashrc
exec "$SHELL"
sudo apt update
# Install essential packages
sudo apt-get install --no-install-recommends make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
# Install python 3.7.9
pyenv install 3.7.9
pyenv global 3.7.9
Clone the htm.core
repository. It's important to clarify that we use the master
branch. At time of writing, the last release was v2.1.15 on 2 June 2020.
cd && git clone https://github.com/htm-community/htm.core.git
cd htm.core
python setup.py install --user --force
This will build and install a release version of htm.core
. The --user
option prevents the system installed site-packages folder from being changed and avoids the need for admin privileges. The --force
option forces the package to be replaced if it already exists from a previous build.
Note: Retry until install. You should see some like this in the next logs in CLI.
Using $HOME/.pyenv/versions/3.7.9/lib/python3.7/site-packages
Finished processing dependencies for htm.core==2.1.15
bindings /py/setup.py: Setup complete.
With this procedure, you will finished the HTM essential libraries installation.