Open
Description
Reproduce: create a SP in python with a large number of inputs, print it. The output does not match.
probably some casting/integer overflow bug, either only in the print statement (low bug), or in the SP/Conn parameter.
Output
>>> from htm.bindings.sdr import SDR
>>> sp = SP([1000000],[1000])
>>> print(sp)
Spatial Pooler Connections:
Inputs (17000) ~> Outputs (1000) via Segments (1000)
Segments on Cell Min/Mean/Max 1 / 1 / 1
Potential Synapses on Segment Min/Mean/Max 17 / 17 / 17
Connected Synapses on Segment Min/Mean/Max 2 / 8.507 / 15
Synapses Dead (0%) Saturated (0%)
Inputs above incorrect.
>>> sp = SP([100],[1000])
>>> print(sp)
Spatial Pooler Connections:
Inputs (100) ~> Outputs (1000) via Segments (1000)
Segments on Cell Min/Mean/Max 1 / 1 / 1
Potential Synapses on Segment Min/Mean/Max 17 / 17 / 17
Connected Synapses on Segment Min/Mean/Max 2 / 8.507 / 15
Synapses Dead (0%) Saturated (0%)