Skip to content

Instantly share code, notes, and snippets.

View rcrowder's full-sized avatar

Richard Crowder rcrowder

View GitHub Profile
@rcrowder
rcrowder / int_tests.log
Last active November 18, 2015 14:01
Output of - py.test tests\integration
============================= test session starts =============================
platform win32 -- Python 2.7.9 -- pytest-2.5.1
plugins: xdist, cov
collected 77 items
tests/integration/nupic/algorithms/extensive_temporal_memory_test.py ................
tests/integration/nupic/algorithms/temporal_memory_performance_test.py .
tests/integration/nupic/algorithms/tp_likelihood_test.py *** Synapse consistency checking turned on for Cells4 ***
*** Synapse consistency checking turned on for Cells4 ***
*** Synapse consistency checking turned on for Cells4 ***
@rcrowder
rcrowder / unit_tests.txt
Last active November 30, 2015 11:26
Output of - py.test tests\unit 2>&1 > unit_tests.txt
============================= test session starts =============================
platform win32 -- Python 2.7.9 -- pytest-2.5.1
plugins: xdist, cov
collected 854 items / 4 skipped
tests/unit/nupic/utils_test.py ...s..
tests/unit/nupic/algorithms/anomaly_likelihood_jeff_test.py ...ss..
tests/unit/nupic/algorithms/anomaly_likelihood_test.py ....................
tests/unit/nupic/algorithms/anomaly_test.py ..............
tests/unit/nupic/algorithms/cells4_test.py
@rcrowder
rcrowder / extensive diff
Last active August 29, 2015 14:25
C++ TM extensive test differences with Py version
testB11
31c31
< | # predicted => active columns (correct) | 21.8484848 | 1.8332707 | 16.0 | 25.0 | 2163.0 |
---
> | # predicted => active columns (correct) | 21.8686869 | 1.812674 | 16.0 | 25.0 | 2165.0 |
33,34c33,34
< | # unpredicted => active columns (bursting) | 0.8989899 | 1.123621 | 0.0 | 6.0 | 89.0 |
< | # predicted => active cells (correct) | 21.8484848 | 1.8332707 | 16.0 | 25.0 | 2163.0 |
---
@rcrowder
rcrowder / extensive.py
Last active August 29, 2015 14:23
Py TM extensive integration test result
======================================================
Test: __main__.ExtensiveTemporalMemoryTest.testB1
Basic sequence learner. M=1, N=100, P=1.
======================================================
+----------------------------------------------------------+-----------+--------------------+---------+---------+-----------+
| Metric | mean | standard deviation | min | max | sum |
+----------------------------------------------------------+-----------+--------------------+---------+---------+-----------+
| # active columns | 22.959596 | 1.3992725 | 21.0 | 25.0 | 2273.0 |
@rcrowder
rcrowder / tutorial.py
Last active August 29, 2015 14:23
Py TM tutorial integration test result
======================================================
Test: __main__.TutorialTemporalMemoryTest.testEndlesslyRepeating
Endlessly repeating sequence of 2 elements
======================================================
Initialized new TM with parameters:
{'activationThreshold': 1,
'cellsPerColumn': 4,
'columnDimensions': [6],
@rcrowder
rcrowder / tutorial
Last active August 29, 2015 14:23
C++ TM tutorial integration test result
======================================================
Test: __main__.TutorialTemporalMemoryTest.testEndlesslyRepeating
Endlessly repeating sequence of 2 elements
======================================================
Initialized new TM with parameters:
{'activationThreshold': 1,
'cellsPerColumn': 4,
'columnDimensions': [6],
@rcrowder
rcrowder / performance
Last active August 29, 2015 14:23
C++ TM performance integeration test result
Test: Single sequence
TM: 0.162923s
TP: 3.071011s
TP10X2: 0.053333s
.
----------------------------------------------------------------------
Ran 1 test in 3.490s
OK
@rcrowder
rcrowder / extensive
Last active August 29, 2015 14:23
C++ TM extensive integration test result
======================================================
Test: __main__.ExtensiveTemporalMemoryTest.testB1
Basic sequence learner. M=1, N=100, P=1.
======================================================
+----------------------------------------------------------+-----------+--------------------+---------+---------+-----------+
| Metric | mean | standard deviation | min | max | sum |
+----------------------------------------------------------+-----------+--------------------+---------+---------+-----------+
| # active columns | 22.959596 | 1.3992725 | 21.0 | 25.0 | 2273.0 |
@rcrowder
rcrowder / NuPIC_TM_Py_Integration_Tests
Last active August 29, 2015 14:21
NuPIC C++ TM and Python integration test results
Test: Single sequence
TM: 0.300838s
TP: 3.256973s
TP10X2: 0.051369s
.
----------------------------------------------------------------------
Ran 1 test in 3.842s
OK
@rcrowder
rcrowder / hello_tp.py
Created December 8, 2014 20:49
hello_tp.py
C:\Python27\python.exe "C:\Program Files (x86)\JetBrains\PyCharm Community Edition 3.4.1\helpers\pydev\pydevd.py" --multiproc --client 127.0.0.1 --port 50347 --file C:/github-Burt/nupic/examples/tp/hello_tp.py
pydev debugger: process 8148 is connecting
Connected to pydev debugger (build 135.1057)
This program shows how to access the Temporal Pooler directly by demonstrating
how to create a TP instance, train it with vectors, get predictions, and inspect
the state.
The code here runs a very simple version of sequence learning, with one