I have been following the videos from HTM School and specifically, those associated with spatial pooling. I am attempting to reconstruct some of the visualizations. The one that I would like to be able to reconstruct is the mapping from the columns to the encoded input data. I am using the python code. However, it appears that the data members and member functions reside at the lower level .cpp routines which are referenced through a SWIG interface. Granted, I am using an earlier version of nupic but it looks like this area has not changed that much between versions.
Is there a way to access the lower level variables and pointers to objects in the .cpp files but do it within the python code?
For instance, I am working in the python debugger (pdb) and am trying to view the calculateOverlap_ data member of the SpatialPooler.
Thanks, Scott and to everyone else who responded.
I guess my follow-question is more related to the version compatibility. I am running a old version (0.2.7 I believe) which does not have many of these functions that the later versions have.
Can I simply add the code above in the .i file to the existing $NUPIC/binding/algorithms.i and then make an addition to the python wrapper (algorithms_cxx.cpp)?