htm.core icon indicating copy to clipboard operation
htm.core copied to clipboard

"resetIn" flag on tmRegion doesn't seem to actually work.

Open HolotypeRobotics opened this issue 2 years ago • 0 comments

I have been looking for a proper way to reset temporal memory for learning a short sequence. The Region docs it is says that "resetIn" is is supposed to be set with an SDR. Am I supposed to be using setInputArray()? I Tried that, but got parameter resetIn does not exist in Spec for this region Please explain how I am supposed to set this? I think that I need to set this to be able to learn a short sequence. Here is my code:

resetInput = SDR(region.getParameterUInt32("numberOfCols"))
resetInput.dense = [1] * region.getParameterUInt32("numberOfCols")
resetInput = engine.Array(resetInput, True)
# Reset the TM
region.setParameterArray("resetIn", resetInput)

HolotypeRobotics avatar May 30 '23 06:05 HolotypeRobotics