numenta / nupic-legacy

Numenta Platform for Intelligent Computing is an implementation of Hierarchical Temporal Memory (HTM), a theory of intelligence based strictly on the neuroscience of the neocortex.
http://numenta.org/
GNU Affero General Public License v3.0
6.34k stars 1.56k forks source link

Can't pickle <class 'nupic.algorithms.backtracking_tm._SegmentUpdate'> #3763

Closed javitorl closed 7 years ago

javitorl commented 7 years ago

Hi, I got this error when saving a model

cPickle.PicklingError: Can't pickle <class 'nupic.algorithms.backtracking_tm._SegmentUpdate'>: attribute lookup nupic.algorithms.backtracking_tm._SegmentUpdate failed

It is easy to fix, just changing the last line en backtracking_tm.py

from SegmentUpdate = BacktrackingTM._SegmentUpdate to _SegmentUpdate = BacktrackingTM._SegmentUpdate

right?

rhyolight commented 7 years ago

@scottpurdy or @lscheinkman Please confirm is this a quick fix?

lscheinkman commented 7 years ago

@rhyolight I think it will fix. This class was renamed in a previous PR, the '_' was added later

rhyolight commented 7 years ago

Seems like something we'll need to do a bugfix for.