Skip to content

Instantly share code, notes, and snippets.

View rhyolight's full-sized avatar

Matthew Taylor rhyolight

View GitHub Profile
The actualValues of the left classifier region: [ 0. 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14.
15. 16. 17. 18. 19. 20. 21. 22. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.

Dependencies

This file declares the third party open source dependencies this program has apart from those existing in this repository. Only dependencies required for the program to run are declared. Development dependencies are excluded.


Java

See android/app/build.gradle.

@rhyolight
rhyolight / QuickTest.py
Last active February 23, 2016 17:45 — forked from cogmission/QuickTest.py
Example Use of Raw HTM Algorithms
'''
Created on Feb 8, 2015
@author: David Ray
'''
import numpy as np
from nupic.encoders.scalar import ScalarEncoder as ScalarEncoder
from nupic.algorithms.CLAClassifier import CLAClassifier as CLAClassifier
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==0.5.8 --user
$ make
Scanning dependencies of target CapnProto
[ 0%] Creating directories for 'CapnProto'
[ 1%] Performing download step (git clone) for 'CapnProto'
Cloning into 'CapnProto'...
Note: checking out 'v0.5.3'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
sudo apt-get update -y
sudo apt-get install git 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
$ make
Scanning dependencies of target CapnProto
[ 0%] Creating directories for 'CapnProto'
[ 1%] Performing download step (git clone) for 'CapnProto'
Cloning into 'CapnProto'...
Note: checking out 'v0.5.3'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
pip install pycapnp==0.5.5 --user
Collecting pycapnp==0.5.5
Using cached pycapnp-0.5.5.tar.gz
Building wheels for collected packages: pycapnp
Running setup.py bdist_wheel for pycapnp ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-7a2mfU/pycapnp/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmpg5TS8Fpip-wheel- --python-tag cp27:
running bdist_wheel
running build
running build_py
creating build
@rhyolight
rhyolight / cmds.sh
Last active February 17, 2016 23:18
git clone https://github.com/numenta/nupic.core.git
cd nupic.core
sudo apt-get update -y
sudo apt-get install cmake -y
sudo apt-get install python-dev -y
# Installs latest pip (apt-get repo is way outdated)
curl https://bootstrap.pypa.io/get-pip.py | sudo python
pip install -r ../../bindings/py/requirements.txt --user
# This installs 0.5.7, which is not actually the version we want (0.5.5), but it is necessary
# to do this because the nupic.core make step requires capnp to be installed, and this will
matt@matt-VirtualBox:~/nupic.core/build/scripts$ make
Scanning dependencies of target CapnProto
[ 0%] Creating directories for 'CapnProto'
[ 1%] Performing download step (git clone) for 'CapnProto'
Cloning into 'CapnProto'...
Note: checking out 'v0.5.3'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.