This change removes maxSegmentsPerCell and maxSynapsesPerSegment parameters from the Connections class, and adds their logic to the TemporalMemory. In this new code I fixed the synapse destroy bug mentioned in the issue above.
This change is ~performance neutral. If anything, it's slightly faster.
I've wanted to make this change for a long time. Code that enforces segment/synapse limits is algorithm code, not data structure code. There's no obvious right way to do it, and different algorithms should choose whether/how to handle it explicitly.
Fixes #986
This change removes
maxSegmentsPerCell
andmaxSynapsesPerSegment
parameters from theConnections
class, and adds their logic to theTemporalMemory
. In this new code I fixed the synapse destroy bug mentioned in the issue above.This change is ~performance neutral. If anything, it's slightly faster.
I've wanted to make this change for a long time. Code that enforces segment/synapse limits is algorithm code, not data structure code. There's no obvious right way to do it, and different algorithms should choose whether/how to handle it explicitly.