Hi Chandan,
Are you using the OPF? If so, you should be able to do something like the
following:
sensor = model._getSensorRegion()
sensor.getOutputData('dataOut') # numpy array with the current sensor
output
sp = model._getSPRegion()
sp.getOutputData('bottomUpOut') # current SP output
Otherwise if you are using the Network API directly, you can get the SP,
sensor, etc. with calls something like:
sp = net.regions.get('SP', None)
--Subutai
On Wed, Dec 3, 2014 at 4:36 PM, Chandan Maruthi <[email protected]>
wrote:
> Hi,
> I have a question on Spatial Pooler Reconstruction /Decoding/
> Classification question
>
> I am using a HTM network with 1 sensor, 1 spatial pooler and 1 temporal
> pooler.
> I see that I can get the predicted temporal columns, which are the same as
> the spatial pooler output.
> Now I want the corresponding spatial pooler input which essentially is the
> encoder output
> so i can decode it and get the actual raw value.
>
> I am unable to find a function to get the SP input from a given SP output.
> what am I missing?
> I am tending to write some code to create a mapper to store SP input and
> outputs is that the way to go?
>
> Regards
> Chandan
>
>