Skip to content

Instantly share code, notes, and snippets.

View rhyolight's full-sized avatar

Matthew Taylor rhyolight

View GitHub Profile
@rhyolight
rhyolight / nupic-install.sh
Created February 15, 2016 22:42
Installing on Ubuntu 15 in 4 steps
curl https://bootstrap.pypa.io/get-pip.py | sudo python
sudo apt-get install python-dev
pip install https://s3-us-west-2.amazonaws.com/artifacts.numenta.org/numenta/nupic.core/releases/nupic.bindings/nupic.bindings-0.4.0-cp27-none-linux_x86_64.whl --user
pip install nupic --user
@rhyolight
rhyolight / gist:bb7d56fde4a12802b7bf
Created February 11, 2016 19:45
nument.org error trace
∙ npm run build
> [email protected] build /Users/mtaylor/nta/numenta.org
> npm install && npm run support && npm run generate
npm WARN package.json [email protected] No license field.
npm WARN engine [email protected]: wanted: {"node":">=0.12.0"} (current: {"node":"0.10.41","npm":"2.14.4"})
[email protected] node_modules/retina.js
[email protected] node_modules/jquery.universal-analytics
@rhyolight
rhyolight / nupic-core-build-0.2.7.md
Last active January 12, 2016 00:49
Building nupic binaries for 0.2.7

This gist shows how to build NuPIC Core binaries for release 0.2.7.

Checkout NuPIC Core at tag 0.2.7

cd $NUPIC_CORE
git checkout 0.2.7
git clean -dfx

Build NuPIC Core

prediction actual correct
string string string
draw player1 False
player1 draw False
player1 draw False
draw player2 False
player1 player1 True
draw player2 False
draw draw True
{
"modelParams":{
"aggregationInfo":{
"hours":1,
"microseconds":0,
"seconds":0,
"fields":[
[
"consumption",
"sum"
@rhyolight
rhyolight / example.json
Created November 29, 2015 20:23
example of what soda-tap stores about a resource
{
"seriesId": "cost_description",
"meanTimeDelta": "2:10:54.545454",
"temporalField": "check_date",
"fieldTypes": {
"cost_description": "str",
"distdescription": "str",
"account": "int",
"invoice_num": "str",
"invoice_description": "str",
@rhyolight
rhyolight / wave_period.py
Created November 16, 2015 22:23
Predicting Chicago wave period
from menorah import Menorah
sources = [
["chicago-beach-water-quality", "Calumet Beach", "water_temperature"],
["chicago-beach-water-quality", "Calumet Beach", "turbidity"],
["chicago-beach-water-quality", "Calumet Beach", "wave_height"],
["chicago-beach-water-quality", "Calumet Beach", "wave_period"],
]
menorah = Menorah(sources, "work/chicago-wave-period")

Numenta Open Source Tools

The following are all Node.js tools used to help facility the OS development processes and pipelines for the NuPIC project and satellite repos. They are configured to be deployed in a stateless fashion on a simple platform (currently Heroku).

Tooling Server

Kitchen sink, stateless, Node.JS application used to support NuPIC development flow. Been around for several years, not the best code quality. Needs a redesign, but mostly generic. Could be used for other projects with a little work.

live | source

#!/bin/bash
pushd ~/nta/htmengine-traffic-tutorial/python-engine
export APPLICATION_CONFIG_PATH=`pwd`/conf
echo
echo "Stopping Supervisor services..."
supervisorctl stop all
echo
# ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2013, Numenta, Inc. Unless you have an agreement
# with Numenta, Inc., for a separate license for this software code, the
# following terms and conditions apply:
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero Public License version 3 as
# published by the Free Software Foundation.
#