Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

Move segment/synapse cleanup out of Connections (Python) #3654

Merged
merged 4 commits into from Jun 2, 2017

Conversation

mrcslws
Copy link
Contributor

@mrcslws mrcslws commented May 26, 2017

Fixes #3653

This is the Python counterpart to numenta/nupic.core-legacy#1327

The checks will fail. I need to do a nupic.core release.

This is essentially algorithm code, not data structure code, so it
shouldn't happen automagically in the Connections.

This finally fixes the bug in synapse cleanup -- we were destroying
them one at a time rather than as batches. So there was a risk that we
could keep destroying and recreating the same synapse.
Add proper support for serializing
numActivePotentialSynapsesForSegment and lastUsedIterationForSegment.
This requires updating other dependencies. A couple tests fail with
the new numpy version, so I fixed those tests.
@rhyolight
Copy link
Member

Once merged, I will release NuPIC 0.7.0. @numenta/nupic-committers

""" @param numCells (int) Number of cells in collection """

# Save member variables
self.numCells = numCells
assert maxSegmentsPerCell > 0
assert maxSynapsesPerSegment > 0
self.maxSegmentsPerCell = maxSegmentsPerCell
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you I hate seeing assert outside test code.

@mrcslws
Copy link
Contributor Author

mrcslws commented Jun 2, 2017

@scottpurdy this is conceptually the same change as numenta/nupic.core-legacy#1327, so you might be the best person to review it.

@mrcslws mrcslws merged commit b1f35fe into numenta:master Jun 2, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants