[nengo-user] Seeing the decoded values in nengo

Chris Eliasmith celiasmith at uwaterloo.ca
Sun Aug 23 11:23:34 EDT 2015


Hi,

In the latest release, you can probe the connection to find the decoders:

connection = nengo.Connection(a,b)
decoders_p = nengo.Probe(connection, 'decoders', sample_every=1, 
synapse=None)

sample_every tells the sim how often to collect the values (full example 
below).

best, .c

PS if you're using the latest dev version, you need to do it differently.

-------------

import nengo

model =  nengo.Network()
with model:
     stim = nengo.Node([0])
     a = nengo.Ensemble(20, 1)
     b = nengo.Ensemble(20, 1)
     nengo.Connection(stim, a)
     connection = nengo.Connection(a, b)

     decoders_p = nengo.Probe(connection, 'decoders', sample_every=1, 
synapse=None)

sim = nengo.Simulator(model)
sim.run(2.0)
print sim.data[decoders_p][-1,:] #Print the last decoder sample

Mansoureh Fahimi wrote:
> Hi all,
>
> When connection ensembles with nengo how can I see the what the values 
> for the decoded weights are? I know these are computed in the solver 
> function, but I don't know how to get the results out in a file or 
> matrix.
>
> Thanks for your help,
> Mansoureh
> _______________________________________________
> nengo-user mailing list
> nengo-user at ctnsrv.uwaterloo.ca
> http://ctnsrv.uwaterloo.ca/mailman/listinfo/nengo-user

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://artsservices.uwaterloo.ca/pipermail/nengo-user/attachments/20150823/7159f7ce/attachment-0002.html>


More information about the nengo-user mailing list