htm-community / htm.core

Actively developed Hierarchical Temporal Memory (HTM) community fork (continuation) of NuPIC. Implementation for C++ and Python
http://numenta.org
GNU Affero General Public License v3.0
150 stars 74 forks source link

Print Debug Info #355

Open ctrl-z-9000-times opened 5 years ago

ctrl-z-9000-times commented 5 years ago

The c++ method operator<< and python method __str__ should print useful debugging information. The user should be able to quickly determine if their program is obviously broken.

dkeeney commented 5 years ago

From discussion in PR #346 I agree and will be changing it to be such. operator<< will not use Cereal to implement. There will most likely not be an operator>> implementation because it will normally not be reversible.

The save( ) and load( ) functions will be reserved for reversible archive serialization using the Cereal facility as JSON, XML, BINARY, or PortableBinary format.

ctrl-z-9000-times commented 5 years ago

Some potential ideas: