Skip to content

Instantly share code, notes, and snippets.

@csbond007
Last active June 25, 2016 01:50
Show Gist options
  • Save csbond007/255adc7ff350b6ea135e482df8d6f446 to your computer and use it in GitHub Desktop.
Save csbond007/255adc7ff350b6ea135e482df8d6f446 to your computer and use it in GitHub Desktop.
Working Basic Numenta
https://github.com/numenta/nupic/wiki/Compiling-NuPIC-on-Ubuntu-14
sudo apt-get update -y
sudo apt-get install git g++ cmake python-dev -y
git clone https://github.com/numenta/nupic.core.git
git clone https://github.com/numenta/nupic.git
export NUPIC=$HOME/nupic
export NUPIC_CORE=$HOME/nupic.core
curl https://bootstrap.pypa.io/get-pip.py | sudo python
cd $NUPIC_CORE
pip install -r bindings/py/requirements.txt --user
pip install pycapnp --user
mkdir -p $NUPIC_CORE/build/scripts
cd $NUPIC_CORE/build/scripts
cmake $NUPIC_CORE -DCMAKE_INSTALL_PREFIX=../release -DPY_EXTENSIONS_DIR=$NUPIC_CORE/bindings/py/nupic/bindings
make -j2
make install
cd $NUPIC_CORE/build/release/bin
./cpp_region_test
./unit_tests
cd $NUPIC_CORE
python setup.py install --user
cd $NUPIC
python setup.py install --user
export PATH=~/.local/bin:$PATH
sudo apt-get install python-pip python-dev build-essential
sudo pip install --upgrade pip
sudo pip install --upgrade virtualenv
cd /home/ubuntu/nupic/examples/opf/clients/hotgym/simple
python hotgym.py
sudo apt-get install mysql-server
python $NUPIC/examples/swarm/test_db.py
$NUPIC/scripts/run_swarm.py $NUPIC/examples/swarm/simple/search_def.json --maxWorkers=4
sudo apt-get build-dep python-matplotlib
sudo -H pip install matplotlib
pip install matplotlib
-----
https://github.com/numenta/nupic/blob/master/examples/opf/clients/hotgym/prediction/one_gym/nupic_output.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment