Hello everybody.
I have the following error when I want to learn with SpatialPooler:
encoding = numpy.concatenate([catBits, geoBits])
activeColumns = numpy.zeros(spParams["columnCount"])
sp.compute(inputVector=encoding,learn=True, activeArray=activeColumns)
spParams:
columnCount: 2048
spVerbosity: 0
spatialImp: cpp
globalInhibition: 1
localAreaDensity: -1.0
numActiveColumnsPerInhArea: 40
seed: 1960
potentialPct: 0.85
synPermConnected: 0.1
synPermActiveInc: 0.04
synPermInactiveDec: 0.005
boostStrength: 3.0
C:\Users\Mohammad Tahamtan\Miniconda2\python.exe" F:/nupic-master/nupic-master/examples/tahamtan/ex05/script.py
Traceback (most recent call last):
File "F:/nupic-master/nupic-master/examples/tahamtan/ex05/script.py", line 125, in <module>
sp.compute(inputVector=encoding,learn=True, activeArray=activeColumns)
File "C:\Users\Mohammad Tahamtan\AppData\Roaming\Python\Python27\site-packages\nupic\algorithms\spatial_pooler.py", line 925, in compute
self._adaptSynapses(inputVector, activeColumns)
File "C:\Users\Mohammad Tahamtan\AppData\Roaming\Python\Python27\site-packages\nupic\algorithms\spatial_pooler.py", line 1171, in _adaptSynapses
perm = self._permanences[columnIndex]
File "C:\Users\Mohammad Tahamtan\AppData\Roaming\Python\Python27\site-packages\nupic\algorithms\spatial_pooler.py", line 64, in __getitem__
return super(_SparseMatrixCorticalColumnAdapter, self).getRow(columnIndex)
File "C:\Users\Mohammad Tahamtan\Miniconda2\lib\site-packages\nupic\bindings\math.py", line 4265, in getRow
return _math._SparseMatrix32_getRow(self, *args, **kwargs)
TypeError: in method '_SparseMatrix32_getRow', argument 2 of type 'nupic::UInt32'