Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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.

mrcslws added 4 commits May 26, 2017 12:09
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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants