Skip to content

Instantly share code, notes, and snippets.

View rhyolight's full-sized avatar

Matthew Taylor rhyolight

View GitHub Profile
@rhyolight
rhyolight / Balgowlah_Platinum.csv
Last active August 29, 2015 14:00
nupic swarm bug
timestamp kw_energy_consumption
datetime float
T
2010-07-02 00:00:00 5.3
2010-07-02 00:15:00 5.5
2010-07-02 00:30:00 5.1
2010-07-02 00:45:00 5.3
2010-07-02 01:00:00 5.2
2010-07-02 01:15:00 5.5
2010-07-02 01:30:00 4.5
@rhyolight
rhyolight / gist:b0898521f7a05a1a65f1
Created August 4, 2014 18:27
ubuntu pip install nupic failure
~$ pip install nupic
Downloading/unpacking nupic
Downloading nupic-0.1.15.tar.gz (27.2Mb): 27.2Mb downloaded
Running setup.py egg_info for package nupic
warning: no files found matching '_*.dll' under directory 'nupic/bindings'
Installing collected packages: nupic
Running setup.py install for nupic
-- The CXX compiler identification is unknown
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
@rhyolight
rhyolight / gist:2b8b0dfa2248c3e50307
Created December 23, 2014 19:13
ubuntu nupic prep
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get -qq update
sudo apt-get -qq install g++-4.8
sudo apt-get install python-pip python-dev build-essential
sudo pip install --upgrade pip==1.5.6
sudo chown -R $USER $HOME/.local
@rhyolight
rhyolight / sample.csv
Created February 3, 2015 21:54
nupic.geospatial sample csv
7/28/14, 11:42:21 AM 1406598142000 -122.229105 37.48717 0 1
7/28/14, 11:42:21 AM 1406598147000 -122.229121 37.487224 1.234107925453812 1
7/28/14, 11:42:21 AM 1406598150000 -122.229128 37.487276 1.9389838479497048 1
7/28/14, 11:42:21 AM 1406598153000 -122.229135 37.487329 1.9758421715750505 1
7/28/14, 11:42:21 AM 1406598156000 -122.229123 37.487375 1.7418899437741 1
7/28/14, 11:42:21 AM 1406598160000 -122.229097 37.487423 1.4528806874529283 1
7/28/14, 11:42:21 AM 1406598163000 -122.229053 37.48745 1.6362927396635403 1
7/28/14, 11:42:21 AM 1406598166000 -122.229 37.487475 1.8140295224788945 1
7/28/14, 11:42:21 AM 1406598169000 -122.228947 37.487506 1.937432867420526 1
7/28/14, 11:42:21 AM 1406598172000 -122.228887 37.487507 1.7658856225986623 1
wget http://anonscm.debian.org/viewvc/gcccvs/branches/sid/gcc-4.7/debian/patches/armhf-triplet.diff?view=co -O armhf-triplet.diff
wget http://anonscm.debian.org/viewvc/gcccvs/branches/sid/gcc-4.7/debian/patches/gcc-multiarch-trunk.diff?view=co -O gcc-multiarch-trunk.diff
@rhyolight
rhyolight / gist:cbad8a6a4e61409a1749
Created February 20, 2015 00:57
Raspberry Pi nupic.core install error
pi@raspberrypi ~/dev/nupic.core/build/scripts $ which capnp
/usr/local/bin/capnp
pi@raspberrypi ~/dev/nupic.core/build/scripts $ capnp --version
Cap'n Proto version 0.6-dev
pi@raspberrypi ~/dev/nupic.core/build/scripts $ cmake ../../src
doing local build
GNU gold (GNU Binutils for Debian 2.24.51.20140425) 1.11
Copyright (C) 2014 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
@rhyolight
rhyolight / gist:60f04349aac3d1587d40
Created March 3, 2015 00:26
remove_asm performance
python -m cProfile --sort cumtime tp_large.py
378315 function calls (375277 primitive calls) in 52.253 seconds
Ordered by: cumulative time
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.019 0.019 52.254 52.254 tp_large.py:26(<module>)
1 0.011 0.011 51.986 51.986 tp_large.py:43(testCompute1)
10000 0.076 0.000 51.912 0.005 TP10X2.py:284(compute)
10000 0.007 0.000 51.357 0.005 algorithms.py:2690(compute)
@rhyolight
rhyolight / gist:802ce47e4c77d937c712
Created March 3, 2015 00:29
master performance
python -m cProfile --sort cumtime tp_large.py
378315 function calls (375277 primitive calls) in 53.436 seconds
Ordered by: cumulative time
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.019 0.019 53.436 53.436 tp_large.py:26(<module>)
1 0.013 0.013 53.168 53.168 tp_large.py:43(testCompute1)
10000 0.084 0.000 53.101 0.005 TP10X2.py:284(compute)
10000 0.008 0.000 52.509 0.005 algorithms.py:2690(compute)
@rhyolight
rhyolight / gist:3a1ffa02cc02ebc1099b
Created March 3, 2015 02:17
master performance 2
47069719 function calls (43725608 primitive calls) in 159.679 seconds
Ordered by: cumulative time
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.000 0.000 159.680 159.680 run_opf_experiment.py:25(<module>)
1 0.083 0.083 159.359 159.359 run_opf_experiment.py:36(main)
1 0.000 0.000 159.274 159.274 experiment_runner.py:121(runExperiment)
1 0.000 0.000 159.273 159.273 experiment_runner.py:349(_runExperimentImpl)
1 0.189 0.189 157.583 157.583 experiment_runner.py:635(run)
47069808 function calls (43725696 primitive calls) in 157.513 seconds
Ordered by: cumulative time
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.000 0.000 157.514 157.514 run_opf_experiment.py:25(<module>)
1 0.079 0.079 157.224 157.224 run_opf_experiment.py:36(main)
1 0.000 0.000 157.143 157.143 experiment_runner.py:121(runExperiment)
1 0.001 0.001 157.142 157.142 experiment_runner.py:349(_runExperimentImpl)
1 0.189 0.189 155.438 155.438 experiment_runner.py:635(run)