<html><head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head><body style="font-family: tt;" text="#000000" bgcolor="#FFFFFF"><div
 style="font-family: tt;"><span style="font-family: monospace;">Hi,<br><br>In
 the latest release, you can probe the connection to find the decoders:<br><br>connection
 = nengo.Connection(a,b)<br>decoders_p = nengo.Probe(connection, 
'decoders', sample_every=1, synapse=None)   </span><br 
style="font-family: monospace;"><br style="font-family: monospace;"><span
 style="font-family: monospace;">sample_every tells the sim how often to
 collect the values (full example below).  </span><br 
style="font-family: monospace;"><br style="font-family: monospace;"><span
 style="font-family: monospace;">best, .c</span><br style="font-family: 
monospace;"><br style="font-family: monospace;"><span 
style="font-family: monospace;">PS if you're using the latest dev 
version, you need to do it differently.</span><br style="font-family: 
monospace;"><br style="font-family: monospace;"><span 
style="font-family: monospace;">-------------</span><br 
style="font-family: monospace;"><br style="font-family: monospace;"><span
 style="font-family: monospace;">import nengo</span><br 
style="font-family: monospace;"><br style="font-family: monospace;"><span
 style="font-family: monospace;">model =  nengo.Network()</span><br 
style="font-family: monospace;"><span style="font-family: monospace;">with
 model:</span><br style="font-family: monospace;"><span 
style="font-family: monospace;">    stim = nengo.Node([0])</span><br 
style="font-family: monospace;"><span style="font-family: monospace;">   
 a = nengo.Ensemble(20, 1)    </span><br style="font-family: monospace;"><span
 style="font-family: monospace;">    b = nengo.Ensemble(20, 1)    </span><br
 style="font-family: monospace;"><span style="font-family: monospace;">   
 nengo.Connection(stim, a)</span><br style="font-family: monospace;"><span
 style="font-family: monospace;">    connection = nengo.Connection(a, b)</span><br
 style="font-family: monospace;"><br style="font-family: monospace;"><span
 style="font-family: monospace;">    decoders_p = 
nengo.Probe(connection, 'decoders', sample_every=1, synapse=None)   </span><br
 style="font-family: monospace;"><span style="font-family: monospace;">   
 </span><br style="font-family: monospace;"><span style="font-family: 
monospace;">sim = nengo.Simulator(model)</span><br style="font-family: 
monospace;"><span style="font-family: monospace;">sim.run(2.0)</span><br
 style="font-family: monospace;"><span style="font-family: monospace;">print
 sim.data[decoders_p][-1,:] #Print the last decoder sample</span><br 
style="font-family: monospace;"><br style="font-family: monospace;"><span
 style="font-family: monospace;">Mansoureh Fahimi wrote:</span><br 
style="font-family: monospace;"><blockquote style="font-family: 
monospace;" 
cite="mid:CAORPo42BSNrE8NF0WceAO9HjXa3LUMivmh7Y3q_6oCWUQX7=WQ@mail.gmail.com"
 type="cite"><meta http-equiv="Content-Type" content="text/html; 
charset=UTF-8"><div dir="ltr">Hi all,<div><br></div><div>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. </div><div><br></div><div>Thanks
 for your help,</div><div>Mansoureh</div></div>

<pre wrap="">_______________________________________________
nengo-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:nengo-user@ctnsrv.uwaterloo.ca">nengo-user@ctnsrv.uwaterloo.ca</a>
<a class="moz-txt-link-freetext" href="http://ctnsrv.uwaterloo.ca/mailman/listinfo/nengo-user">http://ctnsrv.uwaterloo.ca/mailman/listinfo/nengo-user</a>
</pre></blockquote><br style="font-family: monospace;"></div></body></html>