I’d like to run a swarm, one of the variables I want to optimise is the columnCount
field, now this needs to be the same for the spatial pooler and the temporal pooler. Is there any way I can change my permutations.py
so that the number of columns is the same in SP and TM for each model? I have this currently:
'spParams': {
'potentialPct': PermuteFloat(0.25, 0.85),
'synPermActiveInc': PermuteFloat(0.03, 0.07),
'synPermInactiveDec': PermuteFloat(0.0003, 0.1),
'columnCount': PermuteChoices([128,256,512,2048, 4096])
},
'tmParams': {
'activationThreshold': PermuteInt(12, 16),
'columnCount': PermuteChoices([128,256,512,2048, 4096]),
'minThreshold': PermuteInt(9, 12),
'pamLength': PermuteInt(1, 5),
'cellsPerColumn': PermuteChoices([16, 32, 64, 96])
},
So basically, how do I make the permuted value for tmParams.columnCount = spParams.columnCount? Not doing so gives me this error:
File "/home/mack0242/.pyenv/versions/2.7.12/lib/python2.7/site-packages/nupic/frameworks/opf/htm_prediction_model.py", line 1159, in __createHTMNetwork
assert tmParams['columnCount'] == prevRegionWidth