Skip to content

Instantly share code, notes, and snippets.

Created December 27, 2016 01:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/54c43df7b9096433cba2f2e4926ce50c to your computer and use it in GitHub Desktop.
Save anonymous/54c43df7b9096433cba2f2e4926ce50c to your computer and use it in GitHub Desktop.
Some of the tests on nupic and nupic.core
pi@daedalus:~/nupic $ py.test tests/unit
============================= test session starts ==============================
platform linux2 -- Python 2.7.9 -- pytest-2.5.1
plugins: xdist, cov
collected 762 items / 5 skipped
tests/unit/nupic/utils_test.py ......
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 .
tests/unit/nupic/algorithms/cla_classifier_diff_test.py ...................
tests/unit/nupic/algorithms/cla_classifier_test.py ...................
tests/unit/nupic/algorithms/fast_cla_classifier_test.py ...................
tests/unit/nupic/algorithms/knn_classifier_test.py .........s..
tests/unit/nupic/algorithms/sdr_classifier_test.py .........................
tests/unit/nupic/algorithms/sp_overlap_test.py .s.s
tests/unit/nupic/algorithms/svm_test.py ..s
tests/unit/nupic/algorithms/tp10x2_test.py .
tests/unit/nupic/data/aggregator_test.py .
tests/unit/nupic/data/dictutils_test.py ......
tests/unit/nupic/data/fieldmeta_test.py .....
tests/unit/nupic/data/file_record_stream_test.py ......
tests/unit/nupic/data/filters_test.py s
tests/unit/nupic/data/functionsource_test.py ......
tests/unit/nupic/data/inference_shifter_test.py ........
tests/unit/nupic/data/record_stream_test.py .......
tests/unit/nupic/data/utils_test.py .......
tests/unit/nupic/data/generators/anomalyzer_test.py ...........
tests/unit/nupic/data/generators/pattern_machine_test.py .........
tests/unit/nupic/data/generators/sequence_machine_test.py .....
tests/unit/nupic/encoders/adaptivescalar_test.py .......
tests/unit/nupic/encoders/category_test.py ..
tests/unit/nupic/encoders/coordinate_test.py .................
tests/unit/nupic/encoders/date_test.py ........
tests/unit/nupic/encoders/delta_test.py .....
tests/unit/nupic/encoders/geospatial_coordinate_test.py ...........
tests/unit/nupic/encoders/logenc_test.py ......
tests/unit/nupic/encoders/multi_test.py ..
tests/unit/nupic/encoders/pass_through_encoder_test.py ....
tests/unit/nupic/encoders/random_distributed_scalar_test.py ...............
tests/unit/nupic/encoders/scalar_test.py .............
tests/unit/nupic/encoders/scalarspace_test.py .
tests/unit/nupic/encoders/sdrcategory_test.py ...
tests/unit/nupic/encoders/sparse_pass_through_encoder_test.py ....
tests/unit/nupic/engine/network_test.py F..F.FFFFF
tests/unit/nupic/engine/syntactic_sugar_test.py .F...
tests/unit/nupic/engine/unified_py_parameter_test.py ..
tests/unit/nupic/frameworks/opf/clamodel_classifier_helper_test.py ......................
tests/unit/nupic/frameworks/opf/clamodel_test.py ......
tests/unit/nupic/frameworks/opf/opf_metrics_test.py ...............................
tests/unit/nupic/frameworks/opf/previous_value_model_test.py ......
tests/unit/nupic/frameworks/opf/safe_interpreter_test.py ........
tests/unit/nupic/frameworks/opf/two_gram_model_test.py .....
tests/unit/nupic/frameworks/opf/common_models/cluster_params_test.py .
tests/unit/nupic/math/lgamma_test.py .
tests/unit/nupic/math/topology_test.py ....................
tests/unit/nupic/regions/anomaly_likelihood_region_test.py ...
tests/unit/nupic/regions/anomaly_region_test.py F
tests/unit/nupic/regions/knn_anomaly_classifier_region_test.py ....................
tests/unit/nupic/regions/record_sensor_region_test.py .
tests/unit/nupic/regions/regions_spec_test.py s...s......
tests/unit/nupic/research/connections_test.py ..............
tests/unit/nupic/research/inhibition_object_test.py s
tests/unit/nupic/research/sp_learn_inference_test.py s
tests/unit/nupic/research/spatial_pooler_boost_test.py ..
tests/unit/nupic/research/spatial_pooler_compatability_test.py ...ss....
tests/unit/nupic/research/spatial_pooler_compute_test.py ..
tests/unit/nupic/research/spatial_pooler_cpp_api_test.py ............................
tests/unit/nupic/research/spatial_pooler_cpp_unit_test.py ....
tests/unit/nupic/research/spatial_pooler_py_api_test.py ............................
tests/unit/nupic/research/spatial_pooler_unit_test.py s..............................F....
tests/unit/nupic/research/temporal_memory_test.py .............................s.....s.
tests/unit/nupic/research/tp10x2_test.py ....
tests/unit/nupic/research/tp_constant_test.py ...
tests/unit/nupic/research/tp_test.py ....
tests/unit/nupic/research/monitor_mixin/metric_test.py ..
tests/unit/nupic/research/monitor_mixin/trace_test.py ..
tests/unit/nupic/support/configuration_test.py ............s....................
tests/unit/nupic/support/custom_configuration_test.py ...................s.........................
tests/unit/nupic/support/decorators_test.py ............
tests/unit/nupic/support/group_by_test.py ......
tests/unit/nupic/support/object_json_test.py ...............
tests/unit/nupic/support/consoleprinter_test/consoleprinter_test.py .
=================================== FAILURES ===================================
________________________ NetworkTest.testErrorHandling _________________________
self = <tests.unit.nupic.engine.network_test.NetworkTest testMethod=testErrorHandling>
@unittest.skipIf(sys.platform.lower().startswith("win"),
"Not supported on Windows, yet!")
def testErrorHandling(self):
n = engine.Network()
# Test trying to add non-existent node
with self.assertRaises(Exception) as cm:
n.addRegion('r', 'py.NonExistingNode', '')
self.assertEqual(cm.exception.message, "Matching Python module for NonExistingNode not found.")
orig_import = __import__
def import_mock(name, *args):
if name == "nupic.regions.UnimportableNode":
raise SyntaxError("invalid syntax (UnimportableNode.py, line 5)")
return orig_import(name, *args)
with patch('__builtin__.__import__', side_effect=import_mock):
# Test failure during import
with self.assertRaises(Exception) as cm:
n.addRegion('r', 'py.UnimportableNode', '')
self.assertEqual(cm.exception.message, "invalid syntax (UnimportableNode.py, line 5)")
# Test failure in the __init__() method
with self.assertRaises(Exception) as cm:
n.addRegion('r', 'py.TestNode', '{ failInInit: 1 }')
self.assertEqual(cm.exception.message, "TestNode.__init__() Failing on purpose as requested")
# Test failure inside the compute() method
with self.assertRaises(Exception) as cm:
r = n.addRegion('r', 'py.TestNode', '{ failInCompute: 1 }')
r.dimensions = engine.Dimensions([4, 4])
n.initialize()
n.run(1)
self.assertEqual(str(cm.exception),
> 'TestNode.compute() Failing on purpose as requested')
E AssertionError: "Wrong number or type of arguments for overloaded function 'new_Dimensions'.\n Possible C/C++ prototypes are:\n nupic::Dimensions::Dimensions()\n nupic::Dimensions::Dimensions(std::vector< size_t,std::allocator< size_t > >)\n nupic::Dimensions::Dimensions(size_t)\n nupic::Dimensions::Dimensions(size_t,size_t)\n nupic::Dimensions::Dimensions(size_t,size_t,size_t)\n" != 'TestNode.compute() Failing on purpose as requested'
tests/unit/nupic/engine/network_test.py:75: AssertionError
------------------------------- Captured stdout --------------------------------
{'singleNodeOnly': False, 'inputs': {'bottomUpIn': {'count': 0, 'requireSplitterMap': True, 'description': 'Primary input for the node', 'isDefaultInput': True, 'dataType': 'Real64', 'required': True, 'regionLevel': False}}, 'commands': {}, 'description': 'The node spec of the NuPIC 2 Python TestNode', 'parameters': {'failInCompute': {'count': 1, 'description': 'For testing failure in compute()', 'dataType': 'Int32', 'accessMode': 'ReadWrite', 'defaultValue': '0', 'constraints': ''}, 'stringParam': {'count': 0, 'description': 'String parameter', 'dataType': 'Byte', 'accessMode': 'ReadWrite', 'defaultValue': 'nodespec value', 'constraints': ''}, 'real32Param': {'count': 1, 'description': 'Real32 scalar parameter', 'dataType': 'Real32', 'accessMode': 'ReadWrite', 'defaultValue': '32.1', 'constraints': ''}, 'failInInit': {'count': 1, 'description': 'For testing failure in __init__()', 'dataType': 'Int32', 'accessMode': 'ReadWrite', 'defaultValue': '0', 'constraints': ''}, 'boolArrayParam': {'count': 0, 'description': 'bool array parameter', 'dataType': 'Bool', 'accessMode': 'ReadWrite', 'defaultValue': '', 'constraints': ''}, 'uint32Param': {'count': 1, 'description': 'UInt32 scalar parameter', 'dataType': 'UInt32', 'accessMode': 'ReadWrite', 'defaultValue': '33', 'constraints': ''}, 'boolParam': {'count': 1, 'description': 'bool parameter', 'dataType': 'Bool', 'accessMode': 'ReadWrite', 'defaultValue': 'false', 'constraints': ''}, 'int32Param': {'count': 1, 'description': 'Int32 scalar parameter', 'dataType': 'Int32', 'accessMode': 'ReadWrite', 'defaultValue': '32', 'constraints': ''}, 'uint64Param': {'count': 1, 'description': 'UInt64 scalar parameter', 'dataType': 'UInt64', 'accessMode': 'ReadWrite', 'defaultValue': '65', 'constraints': ''}, 'int64arrayParam': {'count': 0, 'description': 'Int64 array parameter', 'dataType': 'Int64', 'accessMode': 'ReadWrite', 'defaultValue': '', 'constraints': ''}, 'int64Param': {'count': 1, 'description': 'Int64 scalar parameter', 'dataType': 'Int64', 'accessMode': 'ReadWrite', 'defaultValue': '64', 'constraints': ''}, 'real64Param': {'count': 1, 'description': 'Real64 scalar parameter', 'dataType': 'Real64', 'accessMode': 'ReadWrite', 'defaultValue': '64.1', 'constraints': ''}, 'real32arrayParam': {'count': 0, 'description': 'Real32 array parameter', 'dataType': 'Real32', 'accessMode': 'ReadWrite', 'defaultValue': '', 'constraints': ''}}, 'outputs': {'bottomUpOut': {'count': 0, 'dataType': 'Real64', 'isDefaultOutput': True, 'regionLevel': False, 'description': 'Primary output for the node'}}}
------------------------------- Captured stderr --------------------------------
ERR: Matching Python module for NonExistingNode not found. [/home/pi/nupic.core/src/nupic/engine/RegionImplFactory.cpp line 444]
WARN: PyRegion::createSpec failed: 0x7ea95c7c
ERR: Unable to create region r of type TestNode [/home/pi/nupic.core/src/nupic/engine/RegionImplFactory.cpp line 272]
_______________________ NetworkTest.testInputsAndOutputs _______________________
self = <tests.unit.nupic.engine.network_test.NetworkTest testMethod=testInputsAndOutputs>
def testInputsAndOutputs(self):
n = engine.Network()
region1 = n.addRegion("region1", "TestNode", "")
region2 = n.addRegion("region2", "TestNode", "")
> region1.setDimensions(engine.Dimensions([6, 4]))
tests/unit/nupic/engine/network_test.py:327:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <nupic.engine.Dimensions; >, args = ([6, 4],)
def __init__(self, *args):
"""Construct a Dimensions object
The constructor can be called with no arguments or with a list
of integers
"""
# Init the base class
> engine.Dimensions.__init__(self, *args)
../.local/lib/python2.7/site-packages/nupic-0.5.8.dev0-py2.7.egg/nupic/engine/__init__.py:179:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <nupic.engine.Dimensions; >, args = ([6, 4],)
def __init__(self, *args):
"""
__init__(self) -> Dimensions
__init__(self, v) -> Dimensions
__init__(self, x) -> Dimensions
__init__(self, x, y) -> Dimensions
__init__(self, x, y, z) -> Dimensions
"""
> this = _engine_internal.new_Dimensions(*args)
E NotImplementedError: Wrong number or type of arguments for overloaded function 'new_Dimensions'.
E Possible C/C++ prototypes are:
E nupic::Dimensions::Dimensions()
E nupic::Dimensions::Dimensions(std::vector< size_t,std::allocator< size_t > >)
E nupic::Dimensions::Dimensions(size_t)
E nupic::Dimensions::Dimensions(size_t,size_t)
E nupic::Dimensions::Dimensions(size_t,size_t,size_t)
../nupic.core/bindings/py/nupic/bindings/engine_internal.py:595: NotImplementedError
_______________________ NetworkTest.testOneRegionNetwork _______________________
self = <tests.unit.nupic.engine.network_test.NetworkTest testMethod=testOneRegionNetwork>
def testOneRegionNetwork(self):
n = engine.Network()
print "Number of regions in new network: %d" % len(n.regions)
self.assertEqual(len(n.regions), 0)
print "Adding level1SP"
level1SP = n.addRegion("level1SP", "TestNode", "")
> print "Current dimensions are: %s" % level1SP.dimensions
tests/unit/nupic/engine/network_test.py:104:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <nupic.engine.Region object at 0x7428d130>
def _getDimensions(self):
"""Dimensions of the region"""
> return Dimensions(tuple(self._region.getDimensions()))
E TypeError: 'Dimensions' object is not iterable
../.local/lib/python2.7/site-packages/nupic-0.5.8.dev0-py2.7.egg/nupic/engine/__init__.py:498: TypeError
------------------------------- Captured stdout --------------------------------
Number of regions in new network: 0
Adding level1SP
______________________ NetworkTest.testPyNodeGetNodeSpec _______________________
self = <tests.unit.nupic.engine.network_test.NetworkTest testMethod=testPyNodeGetNodeSpec>
@unittest.skipIf(sys.platform.lower().startswith("win"),
"Not supported on Windows, yet!")
def testPyNodeGetNodeSpec(self):
n = engine.Network()
r = n.addRegion("region", "py.TestNode", "")
print "Setting region1 dims"
> r.setDimensions(engine.Dimensions([6, 4]))
tests/unit/nupic/engine/network_test.py:380:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <nupic.engine.Dimensions; >, args = ([6, 4],)
def __init__(self, *args):
"""Construct a Dimensions object
The constructor can be called with no arguments or with a list
of integers
"""
# Init the base class
> engine.Dimensions.__init__(self, *args)
../.local/lib/python2.7/site-packages/nupic-0.5.8.dev0-py2.7.egg/nupic/engine/__init__.py:179:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <nupic.engine.Dimensions; >, args = ([6, 4],)
def __init__(self, *args):
"""
__init__(self) -> Dimensions
__init__(self, v) -> Dimensions
__init__(self, x) -> Dimensions
__init__(self, x, y) -> Dimensions
__init__(self, x, y, z) -> Dimensions
"""
> this = _engine_internal.new_Dimensions(*args)
E NotImplementedError: Wrong number or type of arguments for overloaded function 'new_Dimensions'.
E Possible C/C++ prototypes are:
E nupic::Dimensions::Dimensions()
E nupic::Dimensions::Dimensions(std::vector< size_t,std::allocator< size_t > >)
E nupic::Dimensions::Dimensions(size_t)
E nupic::Dimensions::Dimensions(size_t,size_t)
E nupic::Dimensions::Dimensions(size_t,size_t,size_t)
../nupic.core/bindings/py/nupic/bindings/engine_internal.py:595: NotImplementedError
------------------------------- Captured stdout --------------------------------
Setting region1 dims
____________________ NetworkTest.testPyNodeGetSetParameter _____________________
self = <tests.unit.nupic.engine.network_test.NetworkTest testMethod=testPyNodeGetSetParameter>
@unittest.skipIf(sys.platform.lower().startswith("win"),
"Not supported on Windows, yet!")
def testPyNodeGetSetParameter(self):
n = engine.Network()
r = n.addRegion("region", "py.TestNode", "")
print "Setting region1 dims"
> r.dimensions = engine.Dimensions([6, 4])
tests/unit/nupic/engine/network_test.py:358:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <nupic.engine.Dimensions; >, args = ([6, 4],)
def __init__(self, *args):
"""Construct a Dimensions object
The constructor can be called with no arguments or with a list
of integers
"""
# Init the base class
> engine.Dimensions.__init__(self, *args)
../.local/lib/python2.7/site-packages/nupic-0.5.8.dev0-py2.7.egg/nupic/engine/__init__.py:179:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <nupic.engine.Dimensions; >, args = ([6, 4],)
def __init__(self, *args):
"""
__init__(self) -> Dimensions
__init__(self, v) -> Dimensions
__init__(self, x) -> Dimensions
__init__(self, x, y) -> Dimensions
__init__(self, x, y, z) -> Dimensions
"""
> this = _engine_internal.new_Dimensions(*args)
E NotImplementedError: Wrong number or type of arguments for overloaded function 'new_Dimensions'.
E Possible C/C++ prototypes are:
E nupic::Dimensions::Dimensions()
E nupic::Dimensions::Dimensions(std::vector< size_t,std::allocator< size_t > >)
E nupic::Dimensions::Dimensions(size_t)
E nupic::Dimensions::Dimensions(size_t,size_t)
E nupic::Dimensions::Dimensions(size_t,size_t,size_t)
../nupic.core/bindings/py/nupic/bindings/engine_internal.py:595: NotImplementedError
------------------------------- Captured stdout --------------------------------
Setting region1 dims
_______________________ NetworkTest.testTwoRegionNetwork _______________________
self = <tests.unit.nupic.engine.network_test.NetworkTest testMethod=testTwoRegionNetwork>
@unittest.skipIf(sys.platform.lower().startswith("win"),
"Not supported on Windows, yet!")
def testTwoRegionNetwork(self):
n = engine.Network()
region1 = n.addRegion("region1", "TestNode", "")
region2 = n.addRegion("region2", "TestNode", "")
names = []
for name in n.regions:
names.append(name)
self.assertEqual(names, ['region1', 'region2'])
print n.getPhases('region1')
self.assertEqual(n.getPhases('region1'), (0,))
self.assertEqual(n.getPhases('region2'), (1,))
n.link("region1", "region2", "TestFanIn2", "")
print "Initialize should fail..."
with self.assertRaises(Exception):
n.initialize()
print "Setting region1 dims"
> r1dims = engine.Dimensions([6, 4])
tests/unit/nupic/engine/network_test.py:306:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <nupic.engine.Dimensions; >, args = ([6, 4],)
def __init__(self, *args):
"""Construct a Dimensions object
The constructor can be called with no arguments or with a list
of integers
"""
# Init the base class
> engine.Dimensions.__init__(self, *args)
../.local/lib/python2.7/site-packages/nupic-0.5.8.dev0-py2.7.egg/nupic/engine/__init__.py:179:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <nupic.engine.Dimensions; >, args = ([6, 4],)
def __init__(self, *args):
"""
__init__(self) -> Dimensions
__init__(self, v) -> Dimensions
__init__(self, x) -> Dimensions
__init__(self, x, y) -> Dimensions
__init__(self, x, y, z) -> Dimensions
"""
> this = _engine_internal.new_Dimensions(*args)
E NotImplementedError: Wrong number or type of arguments for overloaded function 'new_Dimensions'.
E Possible C/C++ prototypes are:
E nupic::Dimensions::Dimensions()
E nupic::Dimensions::Dimensions(std::vector< size_t,std::allocator< size_t > >)
E nupic::Dimensions::Dimensions(size_t)
E nupic::Dimensions::Dimensions(size_t,size_t)
E nupic::Dimensions::Dimensions(size_t,size_t,size_t)
../nupic.core/bindings/py/nupic/bindings/engine_internal.py:595: NotImplementedError
------------------------------- Captured stdout --------------------------------
(0,)
Initialize should fail...
Setting region1 dims
------------------------------- Captured stderr --------------------------------
ERR: Network::initialize() -- unable to evaluate all links
The following links could not be evaluated:
[region1.bottomUpOut (region dims: [unspecified]) to region2.bottomUpIn (region dims: [unspecified]) type: TestFanIn2]
[/home/pi/nupic.core/src/nupic/engine/Network.cpp line 514]
____________________ NetworkTest.testTwoRegionPyNodeNetwork ____________________
self = <tests.unit.nupic.engine.network_test.NetworkTest testMethod=testTwoRegionPyNodeNetwork>
@unittest.skipIf(sys.platform.lower().startswith("win"),
"Not supported on Windows, yet!")
def testTwoRegionPyNodeNetwork(self):
n = engine.Network()
region1 = n.addRegion("region1", "py.TestNode", "")
region2 = n.addRegion("region2", "py.TestNode", "")
n.link("region1", "region2", "TestFanIn2", "")
print "Initialize should fail..."
with self.assertRaises(Exception):
n.initialize()
print "Setting region1 dims"
> r1dims = engine.Dimensions([6, 4])
tests/unit/nupic/engine/network_test.py:411:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <nupic.engine.Dimensions; >, args = ([6, 4],)
def __init__(self, *args):
"""Construct a Dimensions object
The constructor can be called with no arguments or with a list
of integers
"""
# Init the base class
> engine.Dimensions.__init__(self, *args)
../.local/lib/python2.7/site-packages/nupic-0.5.8.dev0-py2.7.egg/nupic/engine/__init__.py:179:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <nupic.engine.Dimensions; >, args = ([6, 4],)
def __init__(self, *args):
"""
__init__(self) -> Dimensions
__init__(self, v) -> Dimensions
__init__(self, x) -> Dimensions
__init__(self, x, y) -> Dimensions
__init__(self, x, y, z) -> Dimensions
"""
> this = _engine_internal.new_Dimensions(*args)
E NotImplementedError: Wrong number or type of arguments for overloaded function 'new_Dimensions'.
E Possible C/C++ prototypes are:
E nupic::Dimensions::Dimensions()
E nupic::Dimensions::Dimensions(std::vector< size_t,std::allocator< size_t > >)
E nupic::Dimensions::Dimensions(size_t)
E nupic::Dimensions::Dimensions(size_t,size_t)
E nupic::Dimensions::Dimensions(size_t,size_t,size_t)
../nupic.core/bindings/py/nupic/bindings/engine_internal.py:595: NotImplementedError
------------------------------- Captured stdout --------------------------------
Initialize should fail...
Setting region1 dims
------------------------------- Captured stderr --------------------------------
ERR: Network::initialize() -- unable to evaluate all links
The following links could not be evaluated:
[region1.bottomUpOut (region dims: [unspecified]) to region2.bottomUpIn (region dims: [unspecified]) type: TestFanIn2]
[/home/pi/nupic.core/src/nupic/engine/Network.cpp line 514]
_________________________ NetworkSugarTest.testRegion __________________________
self = <tests.unit.nupic.engine.syntactic_sugar_test.NetworkSugarTest testMethod=testRegion>
@unittest.skipIf(sys.platform.lower().startswith("win"),
"Not supported on Windows, yet!")
def testRegion(self):
r = net.Network().addRegion('r', 'py.TestNode', '')
print r.spec
self.assertEqual(r.type, 'py.TestNode')
self.assertEqual(r.name, 'r')
> self.assertTrue(r.dimensions.isUnspecified())
tests/unit/nupic/engine/syntactic_sugar_test.py:122:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <nupic.engine.Region object at 0x740b88f0>
def _getDimensions(self):
"""Dimensions of the region"""
> return Dimensions(tuple(self._region.getDimensions()))
E TypeError: 'Dimensions' object is not iterable
../.local/lib/python2.7/site-packages/nupic-0.5.8.dev0-py2.7.egg/nupic/engine/__init__.py:498: TypeError
------------------------------- Captured stdout --------------------------------
Spec:
Description:
The node spec of the NuPIC 2 Python TestNode
Parameters:
failInCompute
description: For testing failure in compute()
type: Int32
count: 1
stringParam
description: String parameter
type: Byte
count: 0
real32Param
description: Real32 scalar parameter
type: Real32
count: 1
failInInit
description: For testing failure in __init__()
type: Int32
count: 1
boolArrayParam
description: bool array parameter
type: Bool
count: 0
uint32Param
description: UInt32 scalar parameter
type: UInt32
count: 1
boolParam
description: bool parameter
type: Bool
count: 1
int32Param
description: Int32 scalar parameter
type: Int32
count: 1
uint64Param
description: UInt64 scalar parameter
type: UInt64
count: 1
int64arrayParam
description: Int64 array parameter
type: Int64
count: 0
int64Param
description: Int64 scalar parameter
type: Int64
count: 1
real64Param
description: Real64 scalar parameter
type: Real64
count: 1
real32arrayParam
description: Real32 array parameter
type: Real32
count: 0
self
description: The PyObject * of the region's Python classd
type: Handle
count: 1
Inputs:
bottomUpIn
Outputs:
bottomUpOut
Commands:
_______________________ AnomalyRegionTest.testWriteRead ________________________
self = <tests.unit.nupic.regions.anomaly_region_test.AnomalyRegionTest testMethod=testWriteRead>
@unittest.skipUnless(
capnp, "pycapnp is not installed, skipping serialization test.")
def testWriteRead(self):
predictedColumns = [[0, 1 ,1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0],
[0, 1 ,1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0],
[0, 1 ,1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0],
[0, 1 ,1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0],
[0, 1 ,1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0],
[0, 1 ,1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0],
[0, 1 ,1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0],
[0, 1 ,1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0],
[0, 1 ,1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0],
[0, 1 ,1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]]
activeColumns = [[0, 1 ,1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0],
[0, 1 ,1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1],
[0, 1 ,0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0],
[0, 0 ,0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0],
[1, 0 ,0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1],
[0, 0 ,0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1],
[0, 0 ,0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1],
[0, 1 ,1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0],
[0, 1 ,1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1],
[0, 1 ,1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0]]
anomalyExpected = (1.0, 0.25, 1.0/3.0, 2.0/3.0, 1.0, 2.0/3.0, 1.0,
0.0, 0.25, 0.25)
anomalyRegion1 = AnomalyRegion()
inputs = AnomalyRegion.getSpec()['inputs']
outputs = AnomalyRegion.getSpec()['outputs']
for i in xrange(0, 6):
inputs['predictedColumns'] = numpy.array(predictedColumns[i])
inputs['activeColumns'] = numpy.array(activeColumns[i])
anomalyRegion1.compute(inputs, outputs)
proto1 = AnomalyRegionProto.new_message()
anomalyRegion1.write(proto1)
# Write the proto to a temp file and read it back into a new proto
with tempfile.TemporaryFile() as f:
proto1.write(f)
f.seek(0)
proto2 = AnomalyRegionProto.read(f)
# Load the deserialized proto
anomalyRegion2 = AnomalyRegion.read(proto2)
> self.assertEqual(anomalyRegion1, anomalyRegion2)
E AssertionError: <nupic.regions.AnomalyRegion.AnomalyRegion object at 0x7412d6d0> != <nupic.regions.AnomalyRegion.AnomalyRegion object at 0x7412df30>
tests/unit/nupic/regions/anomaly_region_test.py:88: AssertionError
_______________________ SpatialPoolerTest.testWriteRead ________________________
self = <tests.unit.nupic.research.spatial_pooler_unit_test.SpatialPoolerTest testMethod=testWriteRead>
@unittest.skipUnless(
capnp, "pycapnp is not installed, skipping serialization test.")
def testWriteRead(self):
sp1 = SpatialPooler(
inputDimensions=[9],
columnDimensions=[5],
potentialRadius=3,
potentialPct=0.5,
globalInhibition=False,
localAreaDensity=-1.0,
numActiveColumnsPerInhArea=3,
stimulusThreshold=1,
synPermInactiveDec=0.01,
synPermActiveInc=0.1,
synPermConnected=0.10,
minPctOverlapDutyCycle=0.1,
dutyCyclePeriod=10,
boostStrength=10.0,
seed=42,
spVerbosity=0)
# Run a record through before serializing
inputVector = numpy.array([1, 0, 1, 0, 1, 0, 0, 1, 1])
activeArray1 = numpy.zeros(5)
sp1.compute(inputVector, True, activeArray1)
proto1 = SpatialPoolerProto_capnp.SpatialPoolerProto.new_message()
sp1.write(proto1)
# Write the proto to a temp file and read it back into a new proto
with tempfile.TemporaryFile() as f:
proto1.write(f)
f.seek(0)
proto2 = SpatialPoolerProto_capnp.SpatialPoolerProto.read(f)
# Load the deserialized proto
sp2 = SpatialPooler.read(proto2)
ephemeral = set(["_boostedOverlaps", "_overlaps"])
# Check that the two spatial poolers have the same attributes
self.assertSetEqual(set(sp1.__dict__.keys()), set(sp2.__dict__.keys()))
for k, v1 in sp1.__dict__.iteritems():
v2 = getattr(sp2, k)
if k in ephemeral:
continue
if isinstance(v1, numpy.ndarray):
self.assertEqual(v1.dtype, v2.dtype,
"Key %s has differing dtypes: %s vs %s" % (
> k, v1.dtype, v2.dtype))
E AssertionError: Key _inputDimensions has differing dtypes: int32 vs int64
tests/unit/nupic/research/spatial_pooler_unit_test.py:1504: AssertionError
------------------------------- Captured stdout --------------------------------
New seed generated as: 6146 called by run line 320 -> setUp
============= 10 failed, 734 passed, 23 skipped in 615.83 seconds ==============
pi@daedalus:~/nupic.core $ python setup.py test
Setup SWIG Python module
running test
running egg_info
writing requirements to nupic.bindings.egg-info/requires.txt
writing nupic.bindings.egg-info/PKG-INFO
writing namespace_packages to nupic.bindings.egg-info/namespace_packages.txt
writing top-level names to nupic.bindings.egg-info/top_level.txt
writing dependency_links to nupic.bindings.egg-info/dependency_links.txt
writing entry points to nupic.bindings.egg-info/entry_points.txt
reading manifest file 'nupic.bindings.egg-info/SOURCES.txt'
writing manifest file 'nupic.bindings.egg-info/SOURCES.txt'
running build_ext
copying build/lib.linux-armv7l-2.7/nupic/dummy.so -> nupic
============================= test session starts ==============================
platform linux2 -- Python 2.7.9 -- pytest-2.5.1 -- /usr/bin/python
plugins: xdist, cov
collected 173 items
array_algorithms_test.py:40: TestArrayAlgos.testNearlyZeroRange1 PASSED
array_algorithms_test.py:44: TestArrayAlgos.testNearlyZeroRange2 PASSED
array_algorithms_test.py:48: TestArrayAlgos.testNearlyZeroRange3 PASSED
cast_mode_test.py <- ../../../../../../usr/lib/python2.7/unittest/case.py:60: TestCastMode.testCastMode SKIPPED
check_test.py:35: LoadBindingsTest.testImportBindingsExtensions PASSED
check_test.py:30: LoadBindingsTest.testImportBindingsInstalled PASSED
nupic_random_test.py:37: TestNupicRandom.testNupicRandomPickling PASSED
nupic_random_test.py:69: TestNupicRandom.testSample PASSED
nupic_random_test.py:91: TestNupicRandom.testSampleAll PASSED
nupic_random_test.py:134: TestNupicRandom.testSampleBadDtype PASSED
nupic_random_test.py:142: TestNupicRandom.testSampleDifferentDtypes PASSED
nupic_random_test.py:80: TestNupicRandom.testSampleNone PASSED
nupic_random_test.py:150: TestNupicRandom.testSamplePopulationTooSmall PASSED
nupic_random_test.py:122: TestNupicRandom.testSampleSequenceRaisesTypeError PASSED
nupic_random_test.py:113: TestNupicRandom.testSampleWrongDimensionsChoices PASSED
nupic_random_test.py:104: TestNupicRandom.testSampleWrongDimensionsPopulation PASSED
nupic_random_test.py:159: TestNupicRandom.testShuffle PASSED
nupic_random_test.py:187: TestNupicRandom.testShuffleBadDtype PASSED
nupic_random_test.py:180: TestNupicRandom.testShuffleEmpty PASSED
pyregion_test.py:103: PyRegionTest.testCallUnimplementedMethod PASSED
pyregion_test.py:56: PyRegionTest.testNoInit PASSED
pyregion_test.py:68: PyRegionTest.testUnimplementedAbstractMethods PASSED
pyregion_test.py:81: PyRegionTest.testUnimplementedNotImplementedMethods PASSED
sparse_binary_matrix_test.py:97: UnitTests.testAccessors PASSED
sparse_binary_matrix_test.py:564: UnitTests.testAppendDenseRow PASSED
sparse_binary_matrix_test.py:1720: UnitTests.testAppendSparseCol PASSED
sparse_binary_matrix_test.py:541: UnitTests.testAppendSparseRow PASSED
sparse_binary_matrix_test.py:876: UnitTests.testBinary PASSED
sparse_binary_matrix_test.py:798: UnitTests.testCSR PASSED
sparse_binary_matrix_test.py:854: UnitTests.testCSRSize PASSED
sparse_binary_matrix_test.py:836: UnitTests.testCSRToFromFile PASSED
sparse_binary_matrix_test.py:171: UnitTests.testClear PASSED
sparse_binary_matrix_test.py:1502: UnitTests.testCompact PASSED
sparse_binary_matrix_test.py:157: UnitTests.testCopy PASSED
sparse_binary_matrix_test.py:317: UnitTests.testEquals PASSED
sparse_binary_matrix_test.py:630: UnitTests.testFindRowDense PASSED
sparse_binary_matrix_test.py:614: UnitTests.testFindRowSparse PASSED
sparse_binary_matrix_test.py:1568: UnitTests.testFirstRowCloserThan PASSED
sparse_binary_matrix_test.py:643: UnitTests.testGet PASSED
sparse_binary_matrix_test.py:374: UnitTests.testGetAllNonZeros PASSED
sparse_binary_matrix_test.py:441: UnitTests.testGetCol PASSED
sparse_binary_matrix_test.py:820: UnitTests.testGetstateSetstate PASSED
sparse_binary_matrix_test.py:1197: UnitTests.testInsideAndEdges PASSED
sparse_binary_matrix_test.py:1641: UnitTests.testLeftDenseMatMaxAtNZ PASSED
sparse_binary_matrix_test.py:1626: UnitTests.testLeftDenseMatSumAtNZ PASSED
sparse_binary_matrix_test.py:1473: UnitTests.testLeftVecSumAtNZ PASSED
sparse_binary_matrix_test.py:1090: UnitTests.testLogicalAnd PASSED
sparse_binary_matrix_test.py:1012: UnitTests.testLogicalNot PASSED
sparse_binary_matrix_test.py:1029: UnitTests.testLogicalOr PASSED
sparse_binary_matrix_test.py:1154: UnitTests.testMaxAllowedOverlap PASSED
sparse_binary_matrix_test.py:1535: UnitTests.testMinHammingDistance PASSED
sparse_binary_matrix_test.py:518: UnitTests.testNNonZerosPerBox PASSED
sparse_binary_matrix_test.py:1689: UnitTests.testNonZeroRowsIndicator PASSED
sparse_binary_matrix_test.py:1128: UnitTests.testOverlap PASSED
sparse_binary_matrix_test.py:1517: UnitTests.testPickling PASSED
sparse_binary_matrix_test.py:587: UnitTests.testReplaceSparseRow PASSED
sparse_binary_matrix_test.py:194: UnitTests.testResize PASSED
sparse_binary_matrix_test.py:1446: UnitTests.testRightVecArgMaxAtNZ PASSED
sparse_binary_matrix_test.py:1417: UnitTests.testRightVecSumAtNZ PASSED
sparse_binary_matrix_test.py:989: UnitTests.testRowToFromDense PASSED
sparse_binary_matrix_test.py <- ../../../../../../usr/lib/python2.7/unittest/case.py:60: UnitTests.testScalability SKIPPED
sparse_binary_matrix_test.py:658: UnitTests.testSet PASSED
sparse_binary_matrix_test.py:402: UnitTests.testSetAllNonZeros PASSED
sparse_binary_matrix_test.py:726: UnitTests.testSetRangeToOne PASSED
sparse_binary_matrix_test.py:689: UnitTests.testSetRangeToZero PASSED
sparse_binary_matrix_test.py:460: UnitTests.testSetSlice PASSED
sparse_binary_matrix_test.py:1178: UnitTests.testSubtract PASSED
sparse_binary_matrix_test.py:956: UnitTests.testToFromDense PASSED
sparse_binary_matrix_test.py:895: UnitTests.testToFromSparseVector PASSED
sparse_binary_matrix_test.py:763: UnitTests.testTranspose PASSED
sparse_binary_matrix_test.py:1601: UnitTests.testVecMaxProd PASSED
sparse_binary_matrix_test.py:1658: UnitTests.testZeroRowsIndicator PASSED
sparse_binary_matrix_test.py:49: UnitTests.test_construction PASSED
sparse_matrix_test.py:2080: SparseMatrixTest.test_CSRSize PASSED
sparse_matrix_test.py:2726: SparseMatrixTest.test_LBP_piPrime PASSED
sparse_matrix_test.py:2842: SparseMatrixTest.test_LogDiffApprox PASSED
sparse_matrix_test.py <- ../../../../../../usr/lib/python2.7/unittest/case.py:60: SparseMatrixTest.test_LogSumApprox SKIPPED
sparse_matrix_test.py:394: SparseMatrixTest.test_aX_plus_bXY PASSED
sparse_matrix_test.py:1618: SparseMatrixTest.test_add PASSED
sparse_matrix_test.py:2052: SparseMatrixTest.test_addRows PASSED
sparse_matrix_test.py:2661: SparseMatrixTest.test_addToNZAcrossRows PASSED
sparse_matrix_test.py:2596: SparseMatrixTest.test_addToNZDownCols PASSED
sparse_matrix_test.py:2245: SparseMatrixTest.test_addToNZOnly PASSED
sparse_matrix_test.py:1061: SparseMatrixTest.test_addTwoRows PASSED
sparse_matrix_test.py:2295: SparseMatrixTest.test_assignNoAlloc PASSED
sparse_matrix_test.py:2327: SparseMatrixTest.test_assignNoAllocFromBinary PASSED
sparse_matrix_test.py:2883: SparseMatrixTest.test_binarize_with_threshold PASSED
sparse_matrix_test.py:2356: SparseMatrixTest.test_binaryLoadSave PASSED
sparse_matrix_test.py:1001: SparseMatrixTest.test_boxMin_boxMax PASSED
sparse_matrix_test.py:514: SparseMatrixTest.test_clip PASSED
sparse_matrix_test.py:983: SparseMatrixTest.test_clipRowsBelowAndAbove PASSED
sparse_matrix_test.py:52: SparseMatrixTest.test_construction PASSED
sparse_matrix_test.py:1113: SparseMatrixTest.test_copyRow PASSED
sparse_matrix_test.py:3228: SparseMatrixTest.test_count_gt PASSED
sparse_matrix_test.py:3264: SparseMatrixTest.test_count_lt PASSED
sparse_matrix_test.py:478: SparseMatrixTest.test_denseMatExtract PASSED
sparse_matrix_test.py:1201: SparseMatrixTest.test_elementColMultiply PASSED
sparse_matrix_test.py:1485: SparseMatrixTest.test_elementMultiply PASSED
sparse_matrix_test.py:1185: SparseMatrixTest.test_elementRowMultiply PASSED
sparse_matrix_test.py:84: SparseMatrixTest.test_getAllNonZeros PASSED
sparse_matrix_test.py:192: SparseMatrixTest.test_getCol PASSED
sparse_matrix_test.py:1837: SparseMatrixTest.test_getNonZerosInBox PASSED
sparse_matrix_test.py:1870: SparseMatrixTest.test_getNonZerosSorted PASSED
sparse_matrix_test.py:1034: SparseMatrixTest.test_getSlice PASSED
sparse_matrix_test.py:2098: SparseMatrixTest.test_getstate_setstate PASSED
sparse_matrix_test.py:874: SparseMatrixTest.test_increaseRowNonZeroCountsOnOuterTo PASSED
sparse_matrix_test.py:617: SparseMatrixTest.test_increment PASSED
sparse_matrix_test.py:646: SparseMatrixTest.test_incrementNonZerosOnOuter PASSED
sparse_matrix_test.py:688: SparseMatrixTest.test_incrementNonZerosOnRowsExcludingCols PASSED
sparse_matrix_test.py:1533: SparseMatrixTest.test_incrementOnOuterProductVal PASSED
sparse_matrix_test.py:631: SparseMatrixTest.test_incrementOnOuterWNZ PASSED
sparse_matrix_test.py:1510: SparseMatrixTest.test_incrementWithOuterProduct PASSED
sparse_matrix_test.py:3156: SparseMatrixTest.test_initialize_random_01 PASSED
sparse_matrix_test.py:3064: SparseMatrixTest.test_isZero_01 PASSED
sparse_matrix_test.py:278: SparseMatrixTest.test_kthroot_product PASSED
sparse_matrix_test.py:440: SparseMatrixTest.test_leftDenseMatMaxAtNZ PASSED
sparse_matrix_test.py:1165: SparseMatrixTest.test_leftDenseMatSumAtNZ PASSED
sparse_matrix_test.py:1362: SparseMatrixTest.test_leftVecProd PASSED
sparse_matrix_test.py:1428: SparseMatrixTest.test_leftVecSumAtNZ PASSED
sparse_matrix_test.py:2469: SparseMatrixTest.test_logAddValNoAlloc PASSED
sparse_matrix_test.py:2029: SparseMatrixTest.test_logColSums PASSED
sparse_matrix_test.py:2501: SparseMatrixTest.test_logDiffNoAlloc PASSED
sparse_matrix_test.py:2006: SparseMatrixTest.test_logRowSums PASSED
sparse_matrix_test.py:2384: SparseMatrixTest.test_logSumNoAlloc PASSED
sparse_matrix_test.py:2998: SparseMatrixTest.test_logicalAnd PASSED
sparse_matrix_test.py:3029: SparseMatrixTest.test_logicalAnd2 PASSED
sparse_matrix_test.py:420: SparseMatrixTest.test_mat_prod PASSED
sparse_matrix_test.py:2756: SparseMatrixTest.test_matrix_entropy PASSED
sparse_matrix_test.py:1460: SparseMatrixTest.test_multiply PASSED
sparse_matrix_test.py:2974: SparseMatrixTest.test_nNonZeroCols_01 PASSED
sparse_matrix_test.py:2950: SparseMatrixTest.test_nNonZeroRows_01 PASSED
sparse_matrix_test.py:1809: SparseMatrixTest.test_nNonZerosInBox PASSED
sparse_matrix_test.py:1785: SparseMatrixTest.test_nNonZerosInRowRange PASSED
sparse_matrix_test.py:165: SparseMatrixTest.test_nNonZerosPerBox PASSED
sparse_matrix_test.py:2926: SparseMatrixTest.test_nonZeroColsIndicator_01 PASSED
sparse_matrix_test.py:2163: SparseMatrixTest.test_nonZeroIndicesIncluded PASSED
sparse_matrix_test.py:2902: SparseMatrixTest.test_nonZeroRowsIndicator_01 PASSED
sparse_matrix_test.py:3187: SparseMatrixTest.test_partial_argsort PASSED
sparse_matrix_test.py:465: SparseMatrixTest.test_rightDenseMatProdAtNZ PASSED
sparse_matrix_test.py:1298: SparseMatrixTest.test_rightVecProd PASSED
sparse_matrix_test.py:1336: SparseMatrixTest.test_rightVecProd_fast PASSED
sparse_matrix_test.py:1396: SparseMatrixTest.test_rightVecSumAtNZ PASSED
sparse_matrix_test.py:2120: SparseMatrixTest.test_sameRowNonZeroIndices PASSED
sparse_matrix_test.py:1233: SparseMatrixTest.test_scaleCols PASSED
sparse_matrix_test.py:1217: SparseMatrixTest.test_scaleRows PASSED
sparse_matrix_test.py:119: SparseMatrixTest.test_setAllNonZeros PASSED
sparse_matrix_test.py:1762: SparseMatrixTest.test_setBox PASSED
sparse_matrix_test.py:1740: SparseMatrixTest.test_setBoxToZero PASSED
sparse_matrix_test.py:1148: SparseMatrixTest.test_setColsToZero PASSED
sparse_matrix_test.py:1281: SparseMatrixTest.test_setDiagonal PASSED
sparse_matrix_test.py:1265: SparseMatrixTest.test_setDiagonalToVal PASSED
sparse_matrix_test.py:1249: SparseMatrixTest.test_setDiagonalToZero PASSED
sparse_matrix_test.py:1597: SparseMatrixTest.test_setFromElementMultiplyWithOuter PASSED
sparse_matrix_test.py:1559: SparseMatrixTest.test_setFromOuter PASSED
sparse_matrix_test.py:772: SparseMatrixTest.test_setRandomZerosOnOuter PASSED
sparse_matrix_test.py:1077: SparseMatrixTest.test_setRowFromDense PASSED
sparse_matrix_test.py:1093: SparseMatrixTest.test_setRowFromSparse PASSED
sparse_matrix_test.py:215: SparseMatrixTest.test_setSlice PASSED
sparse_matrix_test.py:730: SparseMatrixTest.test_setZerosOnOuter PASSED
sparse_matrix_test.py:1969: SparseMatrixTest.test_shiftCols PASSED
sparse_matrix_test.py:1950: SparseMatrixTest.test_shiftRows PASSED
sparse_matrix_test.py:1918: SparseMatrixTest.test_smoothVecArgMaxProd PASSED
sparse_matrix_test.py:1892: SparseMatrixTest.test_smoothVecMaxProd PASSED
sparse_matrix_test.py:2214: SparseMatrixTest.test_subtractNoAlloc PASSED
sparse_matrix_test.py:3099: SparseMatrixTest.test_sum PASSED
sparse_matrix_test.py:3295: SparseMatrixTest.test_test_nta_set PASSED
sparse_matrix_test.py:491: SparseMatrixTest.test_threshold PASSED
sparse_matrix_test.py:355: SparseMatrixTest.test_transpose PASSED
sparse_matrix_test.py:1673: SparseMatrixTest.test_vecArgMaxAtNZ PASSED
sparse_matrix_test.py:1706: SparseMatrixTest.test_vecArgMaxProd PASSED
sparse_matrix_test.py:1640: SparseMatrixTest.test_vecMaxAtNZ PASSED
sparse_matrix_test.py:1131: SparseMatrixTest.test_zeroRowAndCol PASSED
temporal_memory_test.py:25: TemporalMemoryBindingsTest.testIssue807 PASSED
generated xml file: /home/pi/nupic.core/bindings/py/tests/junit-test-results.xml
--------------- coverage: platform linux2, python 2.7.9-final-0 ----------------
Coverage HTML written to dir htmlcov
==================== 170 passed, 3 skipped in 24.38 seconds ====================
c/ntypes/Value.cpp line 88]
ERR: CHECK FAILED: "category_ == arrayCategory" [/home/pi/nupic.core/src/nupic/ntypes/Value.cpp line 94]
ERR: CHECK FAILED: "category_ == scalarCategory" [/home/pi/nupic.core/src/nupic/ntypes/Value.cpp line 106]
[ OK ] ValueTest.String (0 ms)
[ RUN ] ValueTest.ValueMap
ERR: Key 'scalar' specified twice [/home/pi/nupic.core/src/nupic/ntypes/Value.cpp line 137]
[ OK ] ValueTest.ValueMap (0 ms)
[----------] 4 tests from ValueTest (2 ms total)
[----------] 1 test from ScalarTest
[ RUN ] ScalarTest.All
ERR: CHECK FAILED: "theType_ == NTA_BasicType_UInt64" [/home/pi/nupic.core/src/nupic/ntypes/Scalar.cpp line 83]
ERR: CHECK FAILED: "theType_ == NTA_BasicType_UInt64" [/home/pi/nupic.core/src/nupic/ntypes/Scalar.cpp line 83]
ERR: CHECK FAILED: "theType_ == NTA_BasicType_UInt32" [/home/pi/nupic.core/src/nupic/ntypes/Scalar.cpp line 73]
ERR: CHECK FAILED: "theType_ == NTA_BasicType_Int32" [/home/pi/nupic.core/src/nupic/ntypes/Scalar.cpp line 78]
ERR: CHECK FAILED: "theType_ == NTA_BasicType_Int64" [/home/pi/nupic.core/src/nupic/ntypes/Scalar.cpp line 88]
ERR: CHECK FAILED: "theType_ == NTA_BasicType_UInt32" [/home/pi/nupic.core/src/nupic/ntypes/Scalar.cpp line 73]
ERR: CHECK FAILED: "theType_ == NTA_BasicType_UInt64" [/home/pi/nupic.core/src/nupic/ntypes/Scalar.cpp line 83]
ERR: CHECK FAILED: "theType_ == NTA_BasicType_UInt64" [/home/pi/nupic.core/src/nupic/ntypes/Scalar.cpp line 83]
ERR: CHECK FAILED: "theType_ == NTA_BasicType_UInt64" [/home/pi/nupic.core/src/nupic/ntypes/Scalar.cpp line 83]
ERR: CHECK FAILED: "theType_ == NTA_BasicType_UInt64" [/home/pi/nupic.core/src/nupic/ntypes/Scalar.cpp line 83]
ERR: CHECK FAILED: "theType_ == NTA_BasicType_UInt64" [/home/pi/nupic.core/src/nupic/ntypes/Scalar.cpp line 83]
[ OK ] ScalarTest.All (6 ms)
[----------] 1 test from ScalarTest (6 ms total)
[----------] 1 test from NodeSetTest
[ RUN ] NodeSetTest.Basic
ERR: Attempt to enable node with index 5 which is larger than the number of nodes 4 [/home/pi/nupic.core/src/nupic/ntypes/NodeSet.hpp line 88]
[ OK ] NodeSetTest.Basic (0 ms)
[----------] 1 test from NodeSetTest (0 ms total)
[----------] 4 tests from MemStreamTest
[ RUN ] MemStreamTest.InputStream
[ OK ] MemStreamTest.InputStream (0 ms)
[ RUN ] MemStreamTest.BufferDefaultInputStream
[ OK ] MemStreamTest.BufferDefaultInputStream (0 ms)
[ RUN ] MemStreamTest.OutputStream
[ OK ] MemStreamTest.OutputStream (1 ms)
[ RUN ] MemStreamTest.MemoryLimits
[ OK ] MemStreamTest.MemoryLimits (5121 ms)
[----------] 4 tests from MemStreamTest (5122 ms total)
[----------] 4 tests from MemParserTest
[ RUN ] MemParserTest.getMethods
ERR: CHECK FAILED: "cP < endP_" MemParser::get(string&) - EOF [/home/pi/nupic.core/src/nupic/ntypes/MemParser.cpp line 191]
[ OK ] MemParserTest.getMethods (1 ms)
[ RUN ] MemParserTest.PassInNegativeOne
ERR: CHECK FAILED: "cP < endP_" MemParser::get(string&) - EOF [/home/pi/nupic.core/src/nupic/ntypes/MemParser.cpp line 191]
[ OK ] MemParserTest.PassInNegativeOne (0 ms)
[ RUN ] MemParserTest.RightShiftOperator
ERR: CHECK FAILED: "cP < endP_" MemParser::get(string&) - EOF [/home/pi/nupic.core/src/nupic/ntypes/MemParser.cpp line 191]
[ OK ] MemParserTest.RightShiftOperator (0 ms)
[ RUN ] MemParserTest.ReadIntWhenStrig
ERR: CHECK FAILED: "endP != startP_ && endP <= endP_" MemParser::get(long&) - parse error, not a valid integer [/home/pi/nupic.core/src/nupic/ntypes/MemParser.cpp line 141]
[ OK ] MemParserTest.ReadIntWhenStrig (0 ms)
[----------] 4 tests from MemParserTest (4 ms total)
[----------] 7 tests from DimensionsTest
[ RUN ] DimensionsTest.EmptyDimensions
ERR: Attempt to get count from dimensions [unspecified] [/home/pi/nupic.core/src/nupic/ntypes/Dimensions.cpp line 56]
ERR: Bad request for dimension 0 on [unspecified] [/home/pi/nupic.core/src/nupic/ntypes/Dimensions.cpp line 77]
ERR: Invalid coordinate [1 2] for Dimensions [unspecified] [/home/pi/nupic.core/src/nupic/ntypes/Dimensions.cpp line 170]
ERR: Attempt to get count from dimensions [unspecified] [/home/pi/nupic.core/src/nupic/ntypes/Dimensions.cpp line 56]
ERR: Bad request for dimension 0 on [unspecified] [/home/pi/nupic.core/src/nupic/ntypes/Dimensions.cpp line 77]
[ OK ] DimensionsTest.EmptyDimensions (3 ms)
[ RUN ] DimensionsTest.DontCareDimensions
ERR: Invalid coordinate index 0 of 0 is too large for region dimensions [dontcare] [/home/pi/nupic.core/src/nupic/ntypes/Dimensions.cpp line 188]
ERR: Attempt to get count from dimensions [dontcare] [/home/pi/nupic.core/src/nupic/ntypes/Dimensions.cpp line 56]
[ OK ] DimensionsTest.DontCareDimensions (2 ms)
[ RUN ] DimensionsTest.InvalidDimensions
ERR: Invalid coordinate index 0 of 1 is too large for region dimensions [1 0] (invalid) [/home/pi/nupic.core/src/nupic/ntypes/Dimensions.cpp line 188]
ERR: Attempt to get count from invalid dimensions [1 0] (invalid) [/home/pi/nupic.core/src/nupic/ntypes/Dimensions.cpp line 61]
ERR: Bad request for dimension 2 on [1 0] (invalid) [/home/pi/nupic.core/src/nupic/ntypes/Dimensions.cpp line 77]
[ OK ] DimensionsTest.InvalidDimensions (2 ms)
[ RUN ] DimensionsTest.ValidDimensions
ERR: Bad request for dimension 2 on [2 3] [/home/pi/nupic.core/src/nupic/ntypes/Dimensions.cpp line 77]
[ OK ] DimensionsTest.ValidDimensions (0 ms)
[ RUN ] DimensionsTest.Check2DXMajor
[ OK ] DimensionsTest.Check2DXMajor (0 ms)
[ RUN ] DimensionsTest.Check3DXMajor
[ OK ] DimensionsTest.Check3DXMajor (1 ms)
[ RUN ] DimensionsTest.AlternateConstructor
ERR: Bad request for dimension 2 on [2 5] [/home/pi/nupic.core/src/nupic/ntypes/Dimensions.cpp line 77]
[ OK ] DimensionsTest.AlternateConstructor (0 ms)
[----------] 7 tests from DimensionsTest (9 ms total)
[----------] 5 tests from CollectionTest
[ RUN ] CollectionTest.testEmptyCollection
ERR: CHECK FAILED: "index < vec_.size()" [/home/pi/nupic.core/src/nupic/ntypes/Collection.cpp line 69]
ERR: No item named: blah [/home/pi/nupic.core/src/nupic/ntypes/Collection.cpp line 94]
[ OK ] CollectionTest.testEmptyCollection (1 ms)
[ RUN ] CollectionTest.testCollectionWith_1_Item
ERR: CHECK FAILED: "index < vec_.size()" [/home/pi/nupic.core/src/nupic/ntypes/Collection.cpp line 69]
ERR: No item named: blah [/home/pi/nupic.core/src/nupic/ntypes/Collection.cpp line 94]
[ OK ] CollectionTest.testCollectionWith_1_Item (0 ms)
[ RUN ] CollectionTest.testCollectionWith_2_Items
ERR: CHECK FAILED: "index < vec_.size()" [/home/pi/nupic.core/src/nupic/ntypes/Collection.cpp line 69]
ERR: No item named: blah [/home/pi/nupic.core/src/nupic/ntypes/Collection.cpp line 94]
[ OK ] CollectionTest.testCollectionWith_2_Items (0 ms)
[ RUN ] CollectionTest.testCollectionWith_137_Items
ERR: CHECK FAILED: "index < vec_.size()" [/home/pi/nupic.core/src/nupic/ntypes/Collection.cpp line 69]
ERR: No item named: blah [/home/pi/nupic.core/src/nupic/ntypes/Collection.cpp line 94]
[ OK ] CollectionTest.testCollectionWith_137_Items (1 ms)
[ RUN ] CollectionTest.testCollectionAddRemove
ERR: Unable to add item '0' to collection because it already exists [/home/pi/nupic.core/src/nupic/ntypes/Collection.cpp line 106]
ERR: Unable to add item '1' to collection because it already exists [/home/pi/nupic.core/src/nupic/ntypes/Collection.cpp line 106]
ERR: Unable to add item '2' to collection because it already exists [/home/pi/nupic.core/src/nupic/ntypes/Collection.cpp line 106]
ERR: No item named '4' in collection [/home/pi/nupic.core/src/nupic/ntypes/Collection.cpp line 126]
ERR: No item named '1' in collection [/home/pi/nupic.core/src/nupic/ntypes/Collection.cpp line 126]
ERR: Unable to add item '0' to collection because it already exists [/home/pi/nupic.core/src/nupic/ntypes/Collection.cpp line 106]
ERR: Unable to add item '1' to collection because it already exists [/home/pi/nupic.core/src/nupic/ntypes/Collection.cpp line 106]
ERR: Unable to add item '2' to collection because it already exists [/home/pi/nupic.core/src/nupic/ntypes/Collection.cpp line 106]
ERR: No item named '1' in collection [/home/pi/nupic.core/src/nupic/ntypes/Collection.cpp line 126]
ERR: No item named '0' in collection [/home/pi/nupic.core/src/nupic/ntypes/Collection.cpp line 126]
[ OK ] CollectionTest.testCollectionAddRemove (4 ms)
[----------] 5 tests from CollectionTest (6 ms total)
[----------] 6 tests from BufferTest
[ RUN ] BufferTest.testReadBytes_VariableSizeBuffer
[ OK ] BufferTest.testReadBytes_VariableSizeBuffer (1 ms)
[ RUN ] BufferTest.testReadBytes_SmallBuffer
[ OK ] BufferTest.testReadBytes_SmallBuffer (0 ms)
[ RUN ] BufferTest.testWriteBytes
[ OK ] BufferTest.testWriteBytes (0 ms)
[ RUN ] BufferTest.testEvenMoreComplicatedSerialization
INFO: xo[0]={8.8 6 c 'ABCD' -0.04 '100,101,102'
INFO: xo[1]={4.5 6 t 'XBCD' 3.14 '-999,101,102'
[ OK ] BufferTest.testEvenMoreComplicatedSerialization (0 ms)
[ RUN ] BufferTest.testComplicatedSerialization
INFO: xo[0]={8.8 6 c 'ABCD' -0.04
INFO: xo[1]={4.5 6 t 'XBCD' 3.14
[ OK ] BufferTest.testComplicatedSerialization (0 ms)
[ RUN ] BufferTest.testArrayMethods
[ OK ] BufferTest.testArrayMethods (0 ms)
[----------] 6 tests from BufferTest (1 ms total)
[----------] 5 tests from ArrayTest
[ RUN ] ArrayTest.testArrayCreation
ERR: Invalid NTA_BasicType -1 used in array constructor [/home/pi/nupic.core/src/nupic/ntypes/ArrayBase.cpp line 58]
[ OK ] ArrayTest.testArrayCreation (0 ms)
[ RUN ] ArrayTest.testBufferAllocation
ERR: allocateBuffer -- buffer already set. Use releaseBuffer first [/home/pi/nupic.core/src/nupic/ntypes/ArrayBase.cpp line 79]
ERR: allocateBuffer -- buffer already set. Use releaseBuffer first [/home/pi/nupic.core/src/nupic/ntypes/ArrayBase.cpp line 79]
[ OK ] ArrayTest.testBufferAllocation (1 ms)
[ RUN ] ArrayTest.testBufferAssignment
ERR: setBuffer -- buffer already set. Use releaseBuffer first [/home/pi/nupic.core/src/nupic/ntypes/ArrayBase.cpp line 96]
[ OK ] ArrayTest.testBufferAssignment (0 ms)
[ RUN ] ArrayTest.testBufferRelease
[ OK ] ArrayTest.testBufferRelease (0 ms)
[ RUN ] ArrayTest.testArrayTyping
[ OK ] ArrayTest.testArrayTyping (0 ms)
[----------] 5 tests from ArrayTest (1 ms total)
[----------] 20 tests from TopologyTest
[ RUN ] TopologyTest.IndexFromCoordinates
[ OK ] TopologyTest.IndexFromCoordinates (0 ms)
[ RUN ] TopologyTest.CoordinatesFromIndex
[ OK ] TopologyTest.CoordinatesFromIndex (0 ms)
[ RUN ] TopologyTest.NeighborhoodOfOrigin1D
[ OK ] TopologyTest.NeighborhoodOfOrigin1D (0 ms)
[ RUN ] TopologyTest.NeighborhoodOfOrigin2D
[ OK ] TopologyTest.NeighborhoodOfOrigin2D (0 ms)
[ RUN ] TopologyTest.NeighborhoodOfOrigin3D
[ OK ] TopologyTest.NeighborhoodOfOrigin3D (0 ms)
[ RUN ] TopologyTest.NeighborhoodOfMiddle1D
[ OK ] TopologyTest.NeighborhoodOfMiddle1D (0 ms)
[ RUN ] TopologyTest.NeighborhoodOfMiddle2D
[ OK ] TopologyTest.NeighborhoodOfMiddle2D (0 ms)
[ RUN ] TopologyTest.NeighborhoodOfEnd2D
[ OK ] TopologyTest.NeighborhoodOfEnd2D (0 ms)
[ RUN ] TopologyTest.NeighborhoodWiderThanWorld
[ OK ] TopologyTest.NeighborhoodWiderThanWorld (0 ms)
[ RUN ] TopologyTest.NeighborhoodRadiusZero
[ OK ] TopologyTest.NeighborhoodRadiusZero (0 ms)
[ RUN ] TopologyTest.NeighborhoodDimensionOne
[ OK ] TopologyTest.NeighborhoodDimensionOne (0 ms)
[ RUN ] TopologyTest.WrappingNeighborhoodOfOrigin1D
[ OK ] TopologyTest.WrappingNeighborhoodOfOrigin1D (0 ms)
[ RUN ] TopologyTest.WrappingNeighborhoodOfOrigin2D
[ OK ] TopologyTest.WrappingNeighborhoodOfOrigin2D (0 ms)
[ RUN ] TopologyTest.WrappingNeighborhoodOfOrigin3D
[ OK ] TopologyTest.WrappingNeighborhoodOfOrigin3D (0 ms)
[ RUN ] TopologyTest.WrappingNeighborhoodOfMiddle1D
[ OK ] TopologyTest.WrappingNeighborhoodOfMiddle1D (0 ms)
[ RUN ] TopologyTest.WrappingNeighborhoodOfMiddle2D
[ OK ] TopologyTest.WrappingNeighborhoodOfMiddle2D (0 ms)
[ RUN ] TopologyTest.WrappingNeighborhoodOfEnd2D
[ OK ] TopologyTest.WrappingNeighborhoodOfEnd2D (0 ms)
[ RUN ] TopologyTest.WrappingNeighborhoodWiderThanWorld
[ OK ] TopologyTest.WrappingNeighborhoodWiderThanWorld (0 ms)
[ RUN ] TopologyTest.WrappingNeighborhoodRadiusZero
[ OK ] TopologyTest.WrappingNeighborhoodRadiusZero (0 ms)
[ RUN ] TopologyTest.WrappingNeighborhoodDimensionOne
[ OK ] TopologyTest.WrappingNeighborhoodDimensionOne (0 ms)
[----------] 20 tests from TopologyTest (1 ms total)
[----------] 6 tests from SparseMatrixTest
[ RUN ] SparseMatrixTest.incrementNonZerosOnOuter
INFO: Test: Test 1
INFO: Test: Test 2
INFO: Test: Test 3
[ OK ] SparseMatrixTest.incrementNonZerosOnOuter (0 ms)
[ RUN ] SparseMatrixTest.incrementNonZerosOnRowsExcludingCols
INFO: Test: Test 1
INFO: Test: Test 2
INFO: Test: Test 3
[ OK ] SparseMatrixTest.incrementNonZerosOnRowsExcludingCols (0 ms)
[ RUN ] SparseMatrixTest.setZerosOnOuter
INFO: Test: Test 1
INFO: Test: Test 2
INFO: Test: Test 3
[ OK ] SparseMatrixTest.setZerosOnOuter (1 ms)
[ RUN ] SparseMatrixTest.setRandomZerosOnOuter
INFO: Test: Test 1
INFO: Test: No selected rows
INFO: Test: No selected cols
[ OK ] SparseMatrixTest.setRandomZerosOnOuter (0 ms)
[ RUN ] SparseMatrixTest.increaseRowNonZeroCountsOnOuterTo
INFO: Test: Test 1
INFO: Test: No selected rows
INFO: Test: No selected cols
INFO: Test: Try to catch unsigned integer bugs
[ OK ] SparseMatrixTest.increaseRowNonZeroCountsOnOuterTo (0 ms)
[ RUN ] SparseMatrixTest.clipRowsBelowAndAbove
INFO: Test: Test 1
INFO: Test: Test 2
[ OK ] SparseMatrixTest.clipRowsBelowAndAbove (0 ms)
[----------] 6 tests from SparseMatrixTest (1 ms total)
[----------] 2 tests from SparseMatrixReadWrite
[ RUN ] SparseMatrixReadWrite.EmptyMatrix
[ OK ] SparseMatrixReadWrite.EmptyMatrix (0 ms)
[ RUN ] SparseMatrixReadWrite.Basic
[ OK ] SparseMatrixReadWrite.Basic (0 ms)
[----------] 2 tests from SparseMatrixReadWrite (0 ms total)
[----------] 2 tests from SparseBinaryMatrixReadWrite
[ RUN ] SparseBinaryMatrixReadWrite.EmptyMatrix
[ OK ] SparseBinaryMatrixReadWrite.EmptyMatrix (0 ms)
[ RUN ] SparseBinaryMatrixReadWrite.Basic
[ OK ] SparseBinaryMatrixReadWrite.Basic (0 ms)
[----------] 2 tests from SparseBinaryMatrixReadWrite (0 ms total)
[----------] 32 tests from ExtendedTemporalMemoryTest
[ RUN ] ExtendedTemporalMemoryTest.testInitInvalidParams
ERR: Number of column dimensions must be greater than 0 [/home/pi/nupic.core/src/nupic/experimental/ExtendedTemporalMemory.cpp line 175]
ERR: Number of column dimensions must be greater than 0 [/home/pi/nupic.core/src/nupic/experimental/ExtendedTemporalMemory.cpp line 175]
[ OK ] ExtendedTemporalMemoryTest.testInitInvalidParams (0 ms)
[ RUN ] ExtendedTemporalMemoryTest.ActivateCorrectlyPredictiveCells
[ OK ] ExtendedTemporalMemoryTest.ActivateCorrectlyPredictiveCells (0 ms)
[ RUN ] ExtendedTemporalMemoryTest.BurstUnpredictedColumns
[ OK ] ExtendedTemporalMemoryTest.BurstUnpredictedColumns (0 ms)
[ RUN ] ExtendedTemporalMemoryTest.ZeroActiveColumns
[ OK ] ExtendedTemporalMemoryTest.ZeroActiveColumns (0 ms)
[ RUN ] ExtendedTemporalMemoryTest.PredictedActiveCellsAreAlwaysWinners
[ OK ] ExtendedTemporalMemoryTest.PredictedActiveCellsAreAlwaysWinners (1 ms)
[ RUN ] ExtendedTemporalMemoryTest.ChooseOneWinnerCellInBurstingColumn
[ OK ] ExtendedTemporalMemoryTest.ChooseOneWinnerCellInBurstingColumn (0 ms)
[ RUN ] ExtendedTemporalMemoryTest.ReinforceCorrectlyActiveSegments
[ OK ] ExtendedTemporalMemoryTest.ReinforceCorrectlyActiveSegments (0 ms)
[ RUN ] ExtendedTemporalMemoryTest.ReinforceSelectedMatchingSegmentInBurstingColumn
[ OK ] ExtendedTemporalMemoryTest.ReinforceSelectedMatchingSegmentInBurstingColumn (0 ms)
[ RUN ] ExtendedTemporalMemoryTest.NoChangeToNonselectedMatchingSegmentsInBurstingColumn
[ OK ] ExtendedTemporalMemoryTest.NoChangeToNonselectedMatchingSegmentsInBurstingColumn (0 ms)
[ RUN ] ExtendedTemporalMemoryTest.NoChangeToMatchingSegmentsInPredictedActiveColumn
[ OK ] ExtendedTemporalMemoryTest.NoChangeToMatchingSegmentsInPredictedActiveColumn (0 ms)
[ RUN ] ExtendedTemporalMemoryTest.NoNewSegmentIfNotEnoughWinnerCells
[ OK ] ExtendedTemporalMemoryTest.NoNewSegmentIfNotEnoughWinnerCells (0 ms)
[ RUN ] ExtendedTemporalMemoryTest.NewSegmentAddSynapsesToSubsetOfWinnerCells
[ OK ] ExtendedTemporalMemoryTest.NewSegmentAddSynapsesToSubsetOfWinnerCells (0 ms)
[ RUN ] ExtendedTemporalMemoryTest.NewSegmentAddSynapsesToAllWinnerCells
[ OK ] ExtendedTemporalMemoryTest.NewSegmentAddSynapsesToAllWinnerCells (1 ms)
[ RUN ] ExtendedTemporalMemoryTest.MatchingSegmentAddSynapsesToSubsetOfWinnerCells
[ OK ] ExtendedTemporalMemoryTest.MatchingSegmentAddSynapsesToSubsetOfWinnerCells (0 ms)
[ RUN ] ExtendedTemporalMemoryTest.MatchingSegmentAddSynapsesToAllWinnerCells
[ OK ] ExtendedTemporalMemoryTest.MatchingSegmentAddSynapsesToAllWinnerCells (0 ms)
[ RUN ] ExtendedTemporalMemoryTest.ActiveSegmentGrowSynapsesAccordingToPotentialOverlap
[ OK ] ExtendedTemporalMemoryTest.ActiveSegmentGrowSynapsesAccordingToPotentialOverlap (0 ms)
[ RUN ] ExtendedTemporalMemoryTest.DestroyWeakSynapseOnWrongPrediction
[ OK ] ExtendedTemporalMemoryTest.DestroyWeakSynapseOnWrongPrediction (0 ms)
[ RUN ] ExtendedTemporalMemoryTest.DestroyWeakSynapseOnActiveReinforce
[ OK ] ExtendedTemporalMemoryTest.DestroyWeakSynapseOnActiveReinforce (0 ms)
[ RUN ] ExtendedTemporalMemoryTest.RecycleWeakestSynapseToMakeRoomForNewSynapse
[ OK ] ExtendedTemporalMemoryTest.RecycleWeakestSynapseToMakeRoomForNewSynapse (0 ms)
[ RUN ] ExtendedTemporalMemoryTest.RecycleLeastRecentlyActiveSegmentToMakeRoomForNewSegment
[ OK ] ExtendedTemporalMemoryTest.RecycleLeastRecentlyActiveSegmentToMakeRoomForNewSegment (1 ms)
[ RUN ] ExtendedTemporalMemoryTest.DestroySegmentsWithTooFewSynapsesToBeMatching
[ OK ] ExtendedTemporalMemoryTest.DestroySegmentsWithTooFewSynapsesToBeMatching (0 ms)
[ RUN ] ExtendedTemporalMemoryTest.PunishMatchingSegmentsInInactiveColumns
[ OK ] ExtendedTemporalMemoryTest.PunishMatchingSegmentsInInactiveColumns (0 ms)
[ RUN ] ExtendedTemporalMemoryTest.AddSegmentToCellWithFewestSegments
[ OK ] ExtendedTemporalMemoryTest.AddSegmentToCellWithFewestSegments (10 ms)
[ RUN ] ExtendedTemporalMemoryTest.MaxNewSynapseCountOverflow
[ OK ] ExtendedTemporalMemoryTest.MaxNewSynapseCountOverflow (0 ms)
[ RUN ] ExtendedTemporalMemoryTest.ConnectionsNeverChangeWhenLearningDisabled
[ OK ] ExtendedTemporalMemoryTest.ConnectionsNeverChangeWhenLearningDisabled (0 ms)
[ RUN ] ExtendedTemporalMemoryTest.testColumnForCell1D
[ OK ] ExtendedTemporalMemoryTest.testColumnForCell1D (1 ms)
[ RUN ] ExtendedTemporalMemoryTest.testColumnForCell2D
[ OK ] ExtendedTemporalMemoryTest.testColumnForCell2D (3 ms)
[ RUN ] ExtendedTemporalMemoryTest.testColumnForCellInvalidCell
ERR: Invalid cell 16384 [/home/pi/nupic.core/src/nupic/experimental/ExtendedTemporalMemory.cpp line 1319]
ERR: Invalid cell 4294967295 [/home/pi/nupic.core/src/nupic/experimental/ExtendedTemporalMemory.cpp line 1319]
[ OK ] ExtendedTemporalMemoryTest.testColumnForCellInvalidCell (2 ms)
[ RUN ] ExtendedTemporalMemoryTest.testNumberOfColumns
[ OK ] ExtendedTemporalMemoryTest.testNumberOfColumns (20 ms)
[ RUN ] ExtendedTemporalMemoryTest.testNumberOfCells
[ OK ] ExtendedTemporalMemoryTest.testNumberOfCells (21 ms)
[ RUN ] ExtendedTemporalMemoryTest.testSaveLoad
[ OK ] ExtendedTemporalMemoryTest.testSaveLoad (3 ms)
[ RUN ] ExtendedTemporalMemoryTest.testWrite
[ OK ] ExtendedTemporalMemoryTest.testWrite (3 ms)
[----------] 32 tests from ExtendedTemporalMemoryTest (68 ms total)
[----------] 5 tests from YAMLUtilsTest
[ RUN ] YAMLUtilsTest.toValueTestInt
[ OK ] YAMLUtilsTest.toValueTestInt (0 ms)
[ RUN ] YAMLUtilsTest.toValueTestReal32
[ OK ] YAMLUtilsTest.toValueTestReal32 (0 ms)
[ RUN ] YAMLUtilsTest.toValueTestByte
[ OK ] YAMLUtilsTest.toValueTestByte (0 ms)
[ RUN ] YAMLUtilsTest.toValueTestBool
[ OK ] YAMLUtilsTest.toValueTestBool (0 ms)
[ RUN ] YAMLUtilsTest.ParameterSpec
DEBUG: ps count: 11
ERR: Unknown parameter 'blah' for region 'regionName' of type 'nodeType'
Valid parameters are:
int32Param
uint32Param
int64Param
uint64Param
real32Param
real64Param
real32ArrayParam
int64ArrayParam
computeCallback
stringParam
boolParam
[/home/pi/nupic.core/src/nupic/engine/YAMLUtils.cpp line 285]
ERR: Unknown parameter 'blah'
Valid parameters are:
int32Param
uint32Param
int64Param
uint64Param
real32Param
real64Param
real32ArrayParam
int64ArrayParam
computeCallback
stringParam
boolParam
[/home/pi/nupic.core/src/nupic/engine/YAMLUtils.cpp line 279]
[ OK ] YAMLUtilsTest.ParameterSpec (2 ms)
[----------] 5 tests from YAMLUtilsTest (2 ms total)
[----------] 18 tests from UniformLinkPolicyTest
[ RUN ] UniformLinkPolicyTest.StrictMappingOddSource
ERR: Invalid source dimensions [9 6] for link [. to . type: UnitTestLink].
For dimension 1, given the specified overlap of 0, each successive receptive field of size 2 as requested will add 2 required nodes. Since no span was provided, the source region size (9 for this dimension) + 2 * the overhang (0 for this dimension) must equal the receptive field size plus an integer multiple of the amount added by successive receptive fields. [/home/pi/nupic.core/src/nupic/engine/UniformLinkPolicy.cpp line 607]
[ OK ] UniformLinkPolicyTest.StrictMappingOddSource (1 ms)
[ RUN ] UniformLinkPolicyTest.StrictMappingDimensions
[ OK ] UniformLinkPolicyTest.StrictMappingDimensions (1 ms)
[ RUN ] UniformLinkPolicyTest.SpanNoImpactSource
[ OK ] UniformLinkPolicyTest.SpanNoImpactSource (1 ms)
[ RUN ] UniformLinkPolicyTest.StrictMappingDestination
[ OK ] UniformLinkPolicyTest.StrictMappingDestination (1 ms)
[ RUN ] UniformLinkPolicyTest.SpanNoImpactDestination
[ OK ] UniformLinkPolicyTest.SpanNoImpactDestination (1 ms)
[ RUN ] UniformLinkPolicyTest.StrictMappingGranularityDestFails
ERR: Invalid dest dimensions [7] for link [. to . type: UnitTestLink].
For dimension 1, the specified receptive field size of 10/7is invalid since it would require 10/7 elements (given the source region's 1 elements per node). Elements cannot be subdivided, therefore a strict mapping with this configuration is not possible. [/home/pi/nupic.core/src/nupic/engine/UniformLinkPolicy.cpp line 867]
[ OK ] UniformLinkPolicyTest.StrictMappingGranularityDestFails (1 ms)
[ RUN ] UniformLinkPolicyTest.StrictMappingGranularityDestPasses
[ OK ] UniformLinkPolicyTest.StrictMappingGranularityDestPasses (1 ms)
[ RUN ] UniformLinkPolicyTest.StrictMappingGranularitySourceFails
ERR: Invalid source dimensions [10] for link [. to . type: UnitTestLink].
For dimension 1, the specified receptive field size of 10/7is invalid since it would require 10/7 elements (given the source region's 1 elements per node). Elements cannot be subdivided, therefore a strict mapping with this configuration is not possible. [/home/pi/nupic.core/src/nupic/engine/UniformLinkPolicy.cpp line 627]
[ OK ] UniformLinkPolicyTest.StrictMappingGranularitySourceFails (1 ms)
[ RUN ] UniformLinkPolicyTest.StrictMappingGranularitySourcePasses
[ OK ] UniformLinkPolicyTest.StrictMappingGranularitySourcePasses (1 ms)
[ RUN ] UniformLinkPolicyTest.NonStrictMappingSourcePasses
[ OK ] UniformLinkPolicyTest.NonStrictMappingSourcePasses (1 ms)
[ RUN ] UniformLinkPolicyTest.NonStrictMappingExpectedDimensions
[ OK ] UniformLinkPolicyTest.NonStrictMappingExpectedDimensions (1 ms)
[ RUN ] UniformLinkPolicyTest.NonStrictMappingExpectedDimensions2
[ OK ] UniformLinkPolicyTest.NonStrictMappingExpectedDimensions2 (1 ms)
[ RUN ] UniformLinkPolicyTest.NonStrictMappingExpectedDimensionsEdge
WARN: Since a span was specified, the destination dimensions are treated such that they are compatible with the requested span. In non-strict mappings, extra source nodes are divided amongst spans and then distributed as evenly as possible. Given the specified parameters, the destination dimensions being set will result in 1 destination nodes receiving no input for dimension 1.
[ OK ] UniformLinkPolicyTest.NonStrictMappingExpectedDimensionsEdge (1 ms)
[ RUN ] UniformLinkPolicyTest.NonStrictMappingSourceDimensions
[ OK ] UniformLinkPolicyTest.NonStrictMappingSourceDimensions (2 ms)
[ RUN ] UniformLinkPolicyTest.NonStrictMappingDestinationDimensions
[ OK ] UniformLinkPolicyTest.NonStrictMappingDestinationDimensions (1 ms)
[ RUN ] UniformLinkPolicyTest.OverlapOverhangRealisticDimensions
[ OK ] UniformLinkPolicyTest.OverlapOverhangRealisticDimensions (1 ms)
[ RUN ] UniformLinkPolicyTest.StrictMappingSplitOverReceptiveFields
[ OK ] UniformLinkPolicyTest.StrictMappingSplitOverReceptiveFields (1 ms)
[ RUN ] UniformLinkPolicyTest.NonStrictMappingSplitOverReceptiveFields
[ OK ] UniformLinkPolicyTest.NonStrictMappingSplitOverReceptiveFields (1 ms)
[----------] 18 tests from UniformLinkPolicyTest (19 ms total)
[----------] 7 tests from NetworkFactory
[ RUN ] NetworkFactory.ValidYamlTest
[ OK ] NetworkFactory.ValidYamlTest (9 ms)
[ RUN ] NetworkFactory.MissingLinkFieldsFile
ERR: Invalid network structure file -- bad link (wrong size) [/home/pi/nupic.core/src/nupic/engine/NetworkFactory.cpp line 163]
[ OK ] NetworkFactory.MissingLinkFieldsFile (5 ms)
[ RUN ] NetworkFactory.MissingRegionFieldsFile
ERR: Invalid network structure file -- bad region (wrong size) [/home/pi/nupic.core/src/nupic/engine/NetworkFactory.cpp line 101]
[ OK ] NetworkFactory.MissingRegionFieldsFile (2 ms)
[ RUN ] NetworkFactory.ExtraFieldFile
ERR: Invalid network structure file -- contains 3 elements when it should contain 2. [/home/pi/nupic.core/src/nupic/engine/NetworkFactory.cpp line 72]
[ OK ] NetworkFactory.ExtraFieldFile (3 ms)
[ RUN ] NetworkFactory.NoRegionsFile
ERR: Invalid network structure file -- no regions [/home/pi/nupic.core/src/nupic/engine/NetworkFactory.cpp line 81]
[ OK ] NetworkFactory.NoRegionsFile (3 ms)
[ RUN ] NetworkFactory.NoLinksFile
ERR: Invalid network structure file -- no links [/home/pi/nupic.core/src/nupic/engine/NetworkFactory.cpp line 145]
[ OK ] NetworkFactory.NoLinksFile (5 ms)
[ RUN ] NetworkFactory.EmptyRegions
[ OK ] NetworkFactory.EmptyRegions (1 ms)
[----------] 7 tests from NetworkFactory (28 ms total)
[----------] 9 tests from NetworkTest
[ RUN ] NetworkTest.AutoInitialization
ERR: NuPIC::shutdown -- cannot shut down NuPIC because 1 networks still exist. [/home/pi/nupic.core/src/nupic/engine/NuPIC.cpp line 68]
[ OK ] NetworkTest.AutoInitialization (2 ms)
[ RUN ] NetworkTest.RegionAccess
ERR: getSpec() -- Unsupported node type 'nonexistent_nodetype' [/home/pi/nupic.core/src/nupic/engine/RegionImplFactory.cpp line 471]
ERR: No item named: nosuchregion [/home/pi/nupic.core/src/nupic/ntypes/Collection.cpp line 94]
ERR: No item named: level [/home/pi/nupic.core/src/nupic/ntypes/Collection.cpp line 94]
ERR: Region with name 'level1' already exists in network [/home/pi/nupic.core/src/nupic/engine/Network.cpp line 123]
[ OK ] NetworkTest.RegionAccess (1 ms)
[ RUN ] NetworkTest.InitializationBasic
[ OK ] NetworkTest.InitializationBasic (0 ms)
[ RUN ] NetworkTest.InitializationNoRegions
ERR: Network::initialize() -- unable to complete initialization because region 'level1' has unspecified dimensions. You must either specify dimensions directly or link to the region in a way that induces dimensions on the region. [/home/pi/nupic.core/src/nupic/engine/Network.cpp line 525]
ERR: Network::initialize() -- unable to complete initialization because region 'level1' has unspecified dimensions. You must either specify dimensions directly or link to the region in a way that induces dimensions on the region. [/home/pi/nupic.core/src/nupic/engine/Network.cpp line 525]
ERR: Network::initialize() -- unable to complete initialization because region 'level2' has unspecified dimensions. You must either specify dimensions directly or link to the region in a way that induces dimensions on the region. [/home/pi/nupic.core/src/nupic/engine/Network.cpp line 525]
ERR: Network::initialize() -- unable to complete initialization because region 'level2' has unspecified dimensions. You must either specify dimensions directly or link to the region in a way that induces dimensions on the region. [/home/pi/nupic.core/src/nupic/engine/Network.cpp line 525]
[ OK ] NetworkTest.InitializationNoRegions (3 ms)
[ RUN ] NetworkTest.Modification
DEBUG: Running network modification tests
ERR: removeRegion: no region named 'doesntexist' [/home/pi/nupic.core/src/nupic/engine/Network.cpp line 283]
ERR: No item named: level2 [/home/pi/nupic.core/src/nupic/ntypes/Collection.cpp line 94]
ERR: Network::initialize() -- unable to complete initialization because region 'level2' has unspecified dimensions. You must either specify dimensions directly or link to the region in a way that induces dimensions on the region. [/home/pi/nupic.core/src/nupic/engine/Network.cpp line 525]
ERR: Network::initialize() -- unable to complete initialization because region 'level3' has unspecified dimensions. You must either specify dimensions directly or link to the region in a way that induces dimensions on the region. [/home/pi/nupic.core/src/nupic/engine/Network.cpp line 525]
ERR: Unable to remove region 'level2' because it has one or more outgoing links [/home/pi/nupic.core/src/nupic/engine/Network.cpp line 287]
ERR: Unable to remove region 'level1' because it has one or more outgoing links [/home/pi/nupic.core/src/nupic/engine/Network.cpp line 287]
[ OK ] NetworkTest.Modification (8 ms)
[ RUN ] NetworkTest.Unlinking
DEBUG: Running unlinking tests
ERR: Network::unlink -- no link exists from region level1 output outputdoesnotexist to region level2 input bottomUpIn [/home/pi/nupic.core/src/nupic/engine/Network.cpp line 405]
ERR: Network::unlink -- input 'inputdoesnotexist does not exist on region level2 [/home/pi/nupic.core/src/nupic/engine/Network.cpp line 395]
ERR: Network::unlink -- dest region 'leveldoesnotexist' does not exist [/home/pi/nupic.core/src/nupic/engine/Network.cpp line 380]
ERR: Network::unlink -- source region 'leveldoesnotexist' does not exist [/home/pi/nupic.core/src/nupic/engine/Network.cpp line 376]
ERR: Network::unlink -- no link exists from region level1 output bottomUpOut to region level2 input bottomUpIn [/home/pi/nupic.core/src/nupic/engine/Network.cpp line 405]
ERR: Network::unlink -- no link exists from region level1 output bottomUpOut to region level2 input bottomUpIn [/home/pi/nupic.core/src/nupic/engine/Network.cpp line 405]
ERR: Network::unlink -- no link exists from region level1 output bottomUpOut to region level2 input bottomUpIn [/home/pi/nupic.core/src/nupic/engine/Network.cpp line 405]
ERR: Cannot remove link [level1.bottomUpOut (region dims: [4 2]) to level2.bottomUpIn (region dims: [2 1]) type: TestFanIn2] because destination region level2 is initialized. Remove the region first. [/home/pi/nupic.core/src/nupic/engine/Input.cpp line 101]
[ OK ] NetworkTest.Unlinking (3 ms)
[ RUN ] NetworkTest.Phases
ERR: Network::initialize() -- unable to complete initialization because region 'level1' has unspecified dimensions. You must either specify dimensions directly or link to the region in a way that induces dimensions on the region. [/home/pi/nupic.core/src/nupic/engine/Network.cpp line 525]
[ OK ] NetworkTest.Phases (2 ms)
[ RUN ] NetworkTest.MinMaxPhase
ERR: Attempt to set min enabled phase 1 which is larger than the highest phase in the network - 4294967295 [/home/pi/nupic.core/src/nupic/engine/Network.cpp line 626]
ERR: Attempt to set max enabled phase 1 which is larger than the highest phase in the network - 4294967295 [/home/pi/nupic.core/src/nupic/engine/Network.cpp line 636]
ERR: Attempt to set max enabled phase 4 which is larger than the highest phase in the network - 2 [/home/pi/nupic.core/src/nupic/engine/Network.cpp line 636]
[ OK ] NetworkTest.MinMaxPhase (2 ms)
[ RUN ] NetworkTest.Callback
[ OK ] NetworkTest.Callback (2 ms)
[----------] 9 tests from NetworkTest (24 ms total)
[----------] 4 tests from InputTest
[ RUN ] InputTest.BasicNetworkConstruction
ERR: Invalid NTA_BasicType 12 used in array constructor [/home/pi/nupic.core/src/nupic/ntypes/ArrayBase.cpp line 58]
ERR: Input region's dimensions are unspecified when Input::initialize() was called. Region's dimensions must be specified. [/home/pi/nupic.core/src/nupic/engine/Input.cpp line 529]
ERR: Input region's dimensions are unspecified when Input::initialize() was called. Region's dimensions must be specified. [/home/pi/nupic.core/src/nupic/engine/Input.cpp line 529]
[ OK ] InputTest.BasicNetworkConstruction (2 ms)
[ RUN ] InputTest.Links
ERR: Cannot remove link [region1.bottomUpOut (region dims: [8 4]) to region2.bottomUpIn (region dims: [4 2]) type: TestFanIn2] because destination region region2 is initialized. Remove the region first. [/home/pi/nupic.core/src/nupic/engine/Input.cpp line 101]
ERR: Cannot remove link [region1.bottomUpOut (region dims: [8 4]) to region2.bottomUpIn (region dims: [4 2]) type: TestFanIn2] because destination region region2 is initialized. Remove the region first. [/home/pi/nupic.core/src/nupic/engine/Input.cpp line 101]
ERR: Unable to remove region 'region1' because it has one or more outgoing links [/home/pi/nupic.core/src/nupic/engine/Network.cpp line 287]
ERR: CHECK FAILED: "linkiter != links_.end()" [/home/pi/nupic.core/src/nupic/engine/Input.cpp line 98]
ERR: CHECK FAILED: "linkiter != links_.end()" [/home/pi/nupic.core/src/nupic/engine/Input.cpp line 98]
ERR: CHECK FAILED: "linkiter != links_.end()" [/home/pi/nupic.core/src/nupic/engine/Input.cpp line 98]
[ OK ] InputTest.Links (3 ms)
[ RUN ] InputTest.SplitterMap
[ OK ] InputTest.SplitterMap (2 ms)
[ RUN ] InputTest.LinkTwoRegionsOneInput
[ OK ] InputTest.LinkTwoRegionsOneInput (3 ms)
[----------] 4 tests from InputTest (11 ms total)
[----------] 3 tests from ScalarEncoder
[ RUN ] ScalarEncoder.ValidScalarInputs
ERR: input (9.9) less than range [10, 20] [/home/pi/nupic.core/src/nupic/encoders/ScalarEncoder.cpp line 101]
ERR: input (20.1) greater than range [10, 20] [/home/pi/nupic.core/src/nupic/encoders/ScalarEncoder.cpp line 111]
[ OK ] ScalarEncoder.ValidScalarInputs (0 ms)
[ RUN ] ScalarEncoder.NonIntegerBucketWidth
[ OK ] ScalarEncoder.NonIntegerBucketWidth (0 ms)
[ RUN ] ScalarEncoder.RoundToNearestMultipleOfResolution
[ OK ] ScalarEncoder.RoundToNearestMultipleOfResolution (0 ms)
[----------] 3 tests from ScalarEncoder (0 ms total)
[----------] 3 tests from PeriodicScalarEncoder
[ RUN ] PeriodicScalarEncoder.ValidScalarInputs
ERR: input 9.9 not within range [10, 20) [/home/pi/nupic.core/src/nupic/encoders/ScalarEncoder.cpp line 185]
ERR: input 20 not within range [10, 20) [/home/pi/nupic.core/src/nupic/encoders/ScalarEncoder.cpp line 185]
[ OK ] PeriodicScalarEncoder.ValidScalarInputs (1 ms)
[ RUN ] PeriodicScalarEncoder.NonIntegerBucketWidth
[ OK ] PeriodicScalarEncoder.NonIntegerBucketWidth (0 ms)
[ RUN ] PeriodicScalarEncoder.FloorToNearestMultipleOfResolution
[ OK ] PeriodicScalarEncoder.FloorToNearestMultipleOfResolution (0 ms)
[----------] 3 tests from PeriodicScalarEncoder (1 ms total)
[----------] 34 tests from TemporalMemoryTest
[ RUN ] TemporalMemoryTest.testInitInvalidParams
ERR: Number of column dimensions must be greater than 0 [/home/pi/nupic.core/src/nupic/algorithms/TemporalMemory.cpp line 142]
ERR: Number of cells per column must be greater than 0 [/home/pi/nupic.core/src/nupic/algorithms/TemporalMemory.cpp line 147]
[ OK ] TemporalMemoryTest.testInitInvalidParams (0 ms)
[ RUN ] TemporalMemoryTest.testCheckInputs_UnsortedColumns
ERR: CHECK FAILED: "isSortedWithoutDuplicates(activeColumns, activeColumns + activeColumnsSize)" The activeColumns must be a sorted list of indices without duplicates. [/home/pi/nupic.core/src/nupic/algorithms/TemporalMemory.cpp line 477]
[ OK ] TemporalMemoryTest.testCheckInputs_UnsortedColumns (0 ms)
[ RUN ] TemporalMemoryTest.testCheckInputs_BinaryArray
ERR: CHECK FAILED: "isSortedWithoutDuplicates(activeColumns, activeColumns + activeColumnsSize)" The activeColumns must be a sorted list of indices without duplicates. [/home/pi/nupic.core/src/nupic/algorithms/TemporalMemory.cpp line 477]
[ OK ] TemporalMemoryTest.testCheckInputs_BinaryArray (0 ms)
[ RUN ] TemporalMemoryTest.ActivateCorrectlyPredictiveCells
[ OK ] TemporalMemoryTest.ActivateCorrectlyPredictiveCells (1 ms)
[ RUN ] TemporalMemoryTest.BurstUnpredictedColumns
[ OK ] TemporalMemoryTest.BurstUnpredictedColumns (0 ms)
[ RUN ] TemporalMemoryTest.ZeroActiveColumns
[ OK ] TemporalMemoryTest.ZeroActiveColumns (0 ms)
[ RUN ] TemporalMemoryTest.PredictedActiveCellsAreAlwaysWinners
[ OK ] TemporalMemoryTest.PredictedActiveCellsAreAlwaysWinners (0 ms)
[ RUN ] TemporalMemoryTest.ChooseOneWinnerCellInBurstingColumn
[ OK ] TemporalMemoryTest.ChooseOneWinnerCellInBurstingColumn (0 ms)
[ RUN ] TemporalMemoryTest.ReinforceCorrectlyActiveSegments
[ OK ] TemporalMemoryTest.ReinforceCorrectlyActiveSegments (0 ms)
[ RUN ] TemporalMemoryTest.ReinforceSelectedMatchingSegmentInBurstingColumn
[ OK ] TemporalMemoryTest.ReinforceSelectedMatchingSegmentInBurstingColumn (0 ms)
[ RUN ] TemporalMemoryTest.NoChangeToNonselectedMatchingSegmentsInBurstingColumn
[ OK ] TemporalMemoryTest.NoChangeToNonselectedMatchingSegmentsInBurstingColumn (0 ms)
[ RUN ] TemporalMemoryTest.NoChangeToMatchingSegmentsInPredictedActiveColumn
[ OK ] TemporalMemoryTest.NoChangeToMatchingSegmentsInPredictedActiveColumn (1 ms)
[ RUN ] TemporalMemoryTest.NoNewSegmentIfNotEnoughWinnerCells
[ OK ] TemporalMemoryTest.NoNewSegmentIfNotEnoughWinnerCells (0 ms)
[ RUN ] TemporalMemoryTest.NewSegmentAddSynapsesToSubsetOfWinnerCells
[ OK ] TemporalMemoryTest.NewSegmentAddSynapsesToSubsetOfWinnerCells (0 ms)
[ RUN ] TemporalMemoryTest.NewSegmentAddSynapsesToAllWinnerCells
[ OK ] TemporalMemoryTest.NewSegmentAddSynapsesToAllWinnerCells (0 ms)
[ RUN ] TemporalMemoryTest.MatchingSegmentAddSynapsesToSubsetOfWinnerCells
[ OK ] TemporalMemoryTest.MatchingSegmentAddSynapsesToSubsetOfWinnerCells (0 ms)
[ RUN ] TemporalMemoryTest.MatchingSegmentAddSynapsesToAllWinnerCells
[ OK ] TemporalMemoryTest.MatchingSegmentAddSynapsesToAllWinnerCells (0 ms)
[ RUN ] TemporalMemoryTest.ActiveSegmentGrowSynapsesAccordingToPotentialOverlap
[ OK ] TemporalMemoryTest.ActiveSegmentGrowSynapsesAccordingToPotentialOverlap (0 ms)
[ RUN ] TemporalMemoryTest.DestroyWeakSynapseOnWrongPrediction
[ OK ] TemporalMemoryTest.DestroyWeakSynapseOnWrongPrediction (1 ms)
[ RUN ] TemporalMemoryTest.DestroyWeakSynapseOnActiveReinforce
[ OK ] TemporalMemoryTest.DestroyWeakSynapseOnActiveReinforce (0 ms)
[ RUN ] TemporalMemoryTest.RecycleWeakestSynapseToMakeRoomForNewSynapse
[ OK ] TemporalMemoryTest.RecycleWeakestSynapseToMakeRoomForNewSynapse (0 ms)
[ RUN ] TemporalMemoryTest.RecycleLeastRecentlyActiveSegmentToMakeRoomForNewSegment
[ OK ] TemporalMemoryTest.RecycleLeastRecentlyActiveSegmentToMakeRoomForNewSegment (0 ms)
[ RUN ] TemporalMemoryTest.DestroySegmentsWithTooFewSynapsesToBeMatching
[ OK ] TemporalMemoryTest.DestroySegmentsWithTooFewSynapsesToBeMatching (0 ms)
[ RUN ] TemporalMemoryTest.PunishMatchingSegmentsInInactiveColumns
[ OK ] TemporalMemoryTest.PunishMatchingSegmentsInInactiveColumns (0 ms)
[ RUN ] TemporalMemoryTest.AddSegmentToCellWithFewestSegments
[ OK ] TemporalMemoryTest.AddSegmentToCellWithFewestSegments (10 ms)
[ RUN ] TemporalMemoryTest.MaxNewSynapseCountOverflow
[ OK ] TemporalMemoryTest.MaxNewSynapseCountOverflow (0 ms)
[ RUN ] TemporalMemoryTest.ConnectionsNeverChangeWhenLearningDisabled
[ OK ] TemporalMemoryTest.ConnectionsNeverChangeWhenLearningDisabled (0 ms)
[ RUN ] TemporalMemoryTest.testColumnForCell1D
[ OK ] TemporalMemoryTest.testColumnForCell1D (1 ms)
[ RUN ] TemporalMemoryTest.testColumnForCell2D
[ OK ] TemporalMemoryTest.testColumnForCell2D (1 ms)
[ RUN ] TemporalMemoryTest.testColumnForCellInvalidCell
ERR: Invalid cell 16384 [/home/pi/nupic.core/src/nupic/algorithms/TemporalMemory.cpp line 708]
ERR: Invalid cell 4294967295 [/home/pi/nupic.core/src/nupic/algorithms/TemporalMemory.cpp line 708]
[ OK ] TemporalMemoryTest.testColumnForCellInvalidCell (1 ms)
[ RUN ] TemporalMemoryTest.testNumberOfColumns
[ OK ] TemporalMemoryTest.testNumberOfColumns (10 ms)
[ RUN ] TemporalMemoryTest.testNumberOfCells
[ OK ] TemporalMemoryTest.testNumberOfCells (13 ms)
[ RUN ] TemporalMemoryTest.testSaveLoad
[ OK ] TemporalMemoryTest.testSaveLoad (1 ms)
[ RUN ] TemporalMemoryTest.testWrite
[ OK ] TemporalMemoryTest.testWrite (0 ms)
[----------] 34 tests from TemporalMemoryTest (40 ms total)
[----------] 38 tests from SpatialPoolerTest
[ RUN ] SpatialPoolerTest.testUpdateInhibitionRadius
[ OK ] SpatialPoolerTest.testUpdateInhibitionRadius (44 ms)
[ RUN ] SpatialPoolerTest.testUpdateMinDutyCycles
[ OK ] SpatialPoolerTest.testUpdateMinDutyCycles (0 ms)
[ RUN ] SpatialPoolerTest.testUpdateMinDutyCyclesGlobal
[ OK ] SpatialPoolerTest.testUpdateMinDutyCyclesGlobal (1 ms)
[ RUN ] SpatialPoolerTest.testUpdateMinDutyCyclesLocal
[ OK ] SpatialPoolerTest.testUpdateMinDutyCyclesLocal (0 ms)
[ RUN ] SpatialPoolerTest.testUpdateDutyCycles
[ OK ] SpatialPoolerTest.testUpdateDutyCycles (0 ms)
[ RUN ] SpatialPoolerTest.testAvgColumnsPerInput
[ OK ] SpatialPoolerTest.testAvgColumnsPerInput (33 ms)
[ RUN ] SpatialPoolerTest.testAvgConnectedSpanForColumn1D
[ OK ] SpatialPoolerTest.testAvgConnectedSpanForColumn1D (1 ms)
[ RUN ] SpatialPoolerTest.testAvgConnectedSpanForColumn2D
[ OK ] SpatialPoolerTest.testAvgConnectedSpanForColumn2D (0 ms)
[ RUN ] SpatialPoolerTest.testAvgConnectedSpanForColumnND
[ OK ] SpatialPoolerTest.testAvgConnectedSpanForColumnND (2 ms)
[ RUN ] SpatialPoolerTest.testAdaptSynapses
[ OK ] SpatialPoolerTest.testAdaptSynapses (0 ms)
[ RUN ] SpatialPoolerTest.testBumpUpWeakColumns
[ OK ] SpatialPoolerTest.testBumpUpWeakColumns (0 ms)
[ RUN ] SpatialPoolerTest.testUpdateDutyCyclesHelper
[ OK ] SpatialPoolerTest.testUpdateDutyCyclesHelper (0 ms)
[ RUN ] SpatialPoolerTest.testUpdateBoostFactors
[ OK ] SpatialPoolerTest.testUpdateBoostFactors (1 ms)
[ RUN ] SpatialPoolerTest.testUpdateBookeepingVars
[ OK ] SpatialPoolerTest.testUpdateBookeepingVars (0 ms)
[ RUN ] SpatialPoolerTest.testCalculateOverlap
[ OK ] SpatialPoolerTest.testCalculateOverlap (0 ms)
[ RUN ] SpatialPoolerTest.testCalculateOverlapPct
[ OK ] SpatialPoolerTest.testCalculateOverlapPct (0 ms)
[ RUN ] SpatialPoolerTest.testIsWinner
[ OK ] SpatialPoolerTest.testIsWinner (0 ms)
[ RUN ] SpatialPoolerTest.testAddToWinners
[ OK ] SpatialPoolerTest.testAddToWinners (0 ms)
[ RUN ] SpatialPoolerTest.testInhibitColumns
[ OK ] SpatialPoolerTest.testInhibitColumns (1 ms)
[ RUN ] SpatialPoolerTest.testInhibitColumnsGlobal
[ OK ] SpatialPoolerTest.testInhibitColumnsGlobal (0 ms)
[ RUN ] SpatialPoolerTest.testInhibitColumnsLocal
[ OK ] SpatialPoolerTest.testInhibitColumnsLocal (1 ms)
[ RUN ] SpatialPoolerTest.testIsUpdateRound
[ OK ] SpatialPoolerTest.testIsUpdateRound (0 ms)
[ RUN ] SpatialPoolerTest.testRaisePermanencesToThreshold
[ OK ] SpatialPoolerTest.testRaisePermanencesToThreshold (0 ms)
[ RUN ] SpatialPoolerTest.testUpdatePermanencesForColumn
[ OK ] SpatialPoolerTest.testUpdatePermanencesForColumn (0 ms)
[ RUN ] SpatialPoolerTest.testInitPermanence
[ OK ] SpatialPoolerTest.testInitPermanence (1 ms)
[ RUN ] SpatialPoolerTest.testInitPermConnected
[ OK ] SpatialPoolerTest.testInitPermConnected (0 ms)
[ RUN ] SpatialPoolerTest.testInitPermNonConnected
[ OK ] SpatialPoolerTest.testInitPermNonConnected (0 ms)
[ RUN ] SpatialPoolerTest.testMapColumn
[ OK ] SpatialPoolerTest.testMapColumn (23 ms)
[ RUN ] SpatialPoolerTest.testMapPotential1D
[ OK ] SpatialPoolerTest.testMapPotential1D (1 ms)
[ RUN ] SpatialPoolerTest.testMapPotential2D
[ OK ] SpatialPoolerTest.testMapPotential2D (1 ms)
[ RUN ] SpatialPoolerTest.testStripUnlearnedColumns
[ OK ] SpatialPoolerTest.testStripUnlearnedColumns (0 ms)
[ RUN ] SpatialPoolerTest.getOverlaps
[ OK ] SpatialPoolerTest.getOverlaps (0 ms)
[ RUN ] SpatialPoolerTest.ZeroOverlap_NoStimulusThreshold_GlobalInhibition
[ OK ] SpatialPoolerTest.ZeroOverlap_NoStimulusThreshold_GlobalInhibition (1 ms)
[ RUN ] SpatialPoolerTest.ZeroOverlap_StimulusThreshold_GlobalInhibition
[ OK ] SpatialPoolerTest.ZeroOverlap_StimulusThreshold_GlobalInhibition (1 ms)
[ RUN ] SpatialPoolerTest.ZeroOverlap_NoStimulusThreshold_LocalInhibition
[ OK ] SpatialPoolerTest.ZeroOverlap_NoStimulusThreshold_LocalInhibition (0 ms)
[ RUN ] SpatialPoolerTest.ZeroOverlap_StimulusThreshold_LocalInhibition
[ OK ] SpatialPoolerTest.ZeroOverlap_StimulusThreshold_LocalInhibition (1 ms)
[ RUN ] SpatialPoolerTest.testSaveLoad
check: 0.1 0.1
[ OK ] SpatialPoolerTest.testSaveLoad (2 ms)
[ RUN ] SpatialPoolerTest.testWriteRead
check: 0.1 0.1
[ OK ] SpatialPoolerTest.testWriteRead (1 ms)
[----------] 38 tests from SpatialPoolerTest (116 ms total)
[----------] 3 tests from SegmentTest
[ RUN ] SegmentTest.freeNSynapsesInactiveFirst
[ OK ] SegmentTest.freeNSynapsesInactiveFirst (1 ms)
[ RUN ] SegmentTest.freeNSynapsesActiveFallback
[ OK ] SegmentTest.freeNSynapsesActiveFallback (0 ms)
[ RUN ] SegmentTest.freeNSynapsesStableSort
[ OK ] SegmentTest.freeNSynapsesStableSort (0 ms)
[----------] 3 tests from SegmentTest (1 ms total)
[----------] 5 tests from SDRClassifierTest
[ RUN ] SDRClassifierTest.Basic
[ OK ] SDRClassifierTest.Basic (0 ms)
[ RUN ] SDRClassifierTest.SingleValue
[ OK ] SDRClassifierTest.SingleValue (0 ms)
[ RUN ] SDRClassifierTest.ComputeComplex
[ OK ] SDRClassifierTest.ComputeComplex (0 ms)
[ RUN ] SDRClassifierTest.SaveLoad
[ OK ] SDRClassifierTest.SaveLoad (0 ms)
[ RUN ] SDRClassifierTest.WriteRead
[ OK ] SDRClassifierTest.WriteRead (0 ms)
[----------] 5 tests from SDRClassifierTest (1 ms total)
[----------] 3 tests from FastCLAClassifierTest
[ RUN ] FastCLAClassifierTest.Basic
[ OK ] FastCLAClassifierTest.Basic (0 ms)
[ RUN ] FastCLAClassifierTest.SaveLoad
[ OK ] FastCLAClassifierTest.SaveLoad (0 ms)
[ RUN ] FastCLAClassifierTest.WriteRead
[ OK ] FastCLAClassifierTest.WriteRead (0 ms)
[----------] 3 tests from FastCLAClassifierTest (0 ms total)
[----------] 21 tests from ConnectionsTest
[ RUN ] ConnectionsTest.testCreateSegment
[ OK ] ConnectionsTest.testCreateSegment (0 ms)
[ RUN ] ConnectionsTest.testCreateSegmentReuse
[ OK ] ConnectionsTest.testCreateSegmentReuse (0 ms)
[ RUN ] ConnectionsTest.testCreateSynapse
[ OK ] ConnectionsTest.testCreateSynapse (1 ms)
[ RUN ] ConnectionsTest.testSynapseReuse
[ OK ] ConnectionsTest.testSynapseReuse (0 ms)
[ RUN ] ConnectionsTest.testDestroySegment
[ OK ] ConnectionsTest.testDestroySegment (0 ms)
[ RUN ] ConnectionsTest.testDestroySynapse
[ OK ] ConnectionsTest.testDestroySynapse (0 ms)
[ RUN ] ConnectionsTest.PathsNotInvalidatedByOtherDestroys
[ OK ] ConnectionsTest.PathsNotInvalidatedByOtherDestroys (0 ms)
[ RUN ] ConnectionsTest.DestroySegmentWithDestroyedSynapses
[ OK ] ConnectionsTest.DestroySegmentWithDestroyedSynapses (0 ms)
[ RUN ] ConnectionsTest.ReuseSegmentWithDestroyedSynapses
[ OK ] ConnectionsTest.ReuseSegmentWithDestroyedSynapses (0 ms)
[ RUN ] ConnectionsTest.DestroySegmentsThenReachLimit
[ OK ] ConnectionsTest.DestroySegmentsThenReachLimit (0 ms)
[ RUN ] ConnectionsTest.DestroySynapsesThenReachLimit
[ OK ] ConnectionsTest.DestroySynapsesThenReachLimit (0 ms)
[ RUN ] ConnectionsTest.ReachSegmentLimitMultipleTimes
[ OK ] ConnectionsTest.ReachSegmentLimitMultipleTimes (0 ms)
[ RUN ] ConnectionsTest.ReachSynapseLimitMultipleTimes
[ OK ] ConnectionsTest.ReachSynapseLimitMultipleTimes (0 ms)
[ RUN ] ConnectionsTest.testUpdateSynapsePermanence
[ OK ] ConnectionsTest.testUpdateSynapsePermanence (0 ms)
[ RUN ] ConnectionsTest.testComputeActivity
[ OK ] ConnectionsTest.testComputeActivity (0 ms)
[ RUN ] ConnectionsTest.subscribe
[ OK ] ConnectionsTest.subscribe (0 ms)
[ RUN ] ConnectionsTest.unsubscribe
[ OK ] ConnectionsTest.unsubscribe (0 ms)
[ RUN ] ConnectionsTest.testNumSegments
[ OK ] ConnectionsTest.testNumSegments (0 ms)
[ RUN ] ConnectionsTest.testNumSynapses
[ OK ] ConnectionsTest.testNumSynapses (1 ms)
[ RUN ] ConnectionsTest.testWriteRead
[ OK ] ConnectionsTest.testWriteRead (4 ms)
[ RUN ] ConnectionsTest.testSaveLoad
[ OK ] ConnectionsTest.testSaveLoad (1 ms)
[----------] 21 tests from ConnectionsTest (7 ms total)
[----------] 1 test from CondProbTableTest
[ RUN ] CondProbTableTest.Basic
[ OK ] CondProbTableTest.Basic (5 ms)
[----------] 1 test from CondProbTableTest (5 ms total)
[----------] 5 tests from ComputeRawAnomalyScore
[ RUN ] ComputeRawAnomalyScore.NoActiveOrPredicted
[ OK ] ComputeRawAnomalyScore.NoActiveOrPredicted (0 ms)
[ RUN ] ComputeRawAnomalyScore.NoActive
[ OK ] ComputeRawAnomalyScore.NoActive (0 ms)
[ RUN ] ComputeRawAnomalyScore.PerfectMatch
[ OK ] ComputeRawAnomalyScore.PerfectMatch (0 ms)
[ RUN ] ComputeRawAnomalyScore.NoMatch
[ OK ] ComputeRawAnomalyScore.NoMatch (0 ms)
[ RUN ] ComputeRawAnomalyScore.PartialMatch
[ OK ] ComputeRawAnomalyScore.PartialMatch (0 ms)
[----------] 5 tests from ComputeRawAnomalyScore (0 ms total)
[----------] 7 tests from Anomaly
[ RUN ] Anomaly.ComputeScoreNoActiveOrPredicted
[ OK ] Anomaly.ComputeScoreNoActiveOrPredicted (0 ms)
[ RUN ] Anomaly.ComputeScoreNoActive
[ OK ] Anomaly.ComputeScoreNoActive (0 ms)
[ RUN ] Anomaly.ComputeScorePerfectMatch
[ OK ] Anomaly.ComputeScorePerfectMatch (0 ms)
[ RUN ] Anomaly.ComputeScoreNoMatch
[ OK ] Anomaly.ComputeScoreNoMatch (0 ms)
[ RUN ] Anomaly.ComputeScorePartialMatch
[ OK ] Anomaly.ComputeScorePartialMatch (0 ms)
[ RUN ] Anomaly.Cumulative
[ OK ] Anomaly.Cumulative (0 ms)
[ RUN ] Anomaly.SelectModePure
[ OK ] Anomaly.SelectModePure (0 ms)
[----------] 7 tests from Anomaly (0 ms total)
[----------] Global test environment tear-down
[==========] 341 tests from 44 test cases ran. (8283 ms total)
[ PASSED ] 341 tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment