<div dir="ltr"><div><div><div>Hello Terry,<br><br></div>Thanks for your reply. I already used this to make a connection.<br></div>My problem is that I cannot " nengo.Connection(a.neurons, b.neurons, transform=matrix, function = func)" because it must be applied to an Ensemble.<br></div>I hope you have some solution for this problem.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 8, 2016 at 5:47 PM, Terry Stewart <span dir="ltr"><<a href="mailto:terry.stewart@gmail.com" target="_blank">terry.stewart@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Omar,<br>
<br>
If you want to use Nengo to do manual neuron-to-neuron connection<br>
(i.e. the sort of thing that would happen in a standard neural<br>
simulator), then you need to connection to the ens.neurons object.<br>
For example, here's a quick way to do random connections between two<br>
groups of neurons:<br>
<br>
--------------<br>
import nengo<br>
import numpy as np<br>
<br>
model = nengo.Network()<br>
with model:<br>
a = nengo.Ensemble(n_neurons=50, dimensions=1)<br>
b = nengo.Ensemble(n_neurons=50, dimensions=1)<br>
<br>
matrix = np.random.normal(size=(50, 50))<br>
nengo.Connection(a.neurons, b.neurons, transform=matrix)<br>
-------------------------<br>
<br>
Let us know if that helps for your situations!<br>
<br>
Also, for future questions, we've just started up an online forum at<br>
<a href="https://forum.nengo.ai/" rel="noreferrer" target="_blank">https://forum.nengo.ai/</a><br>
<br>
Terry<br>
<div><div class="h5"><br>
On Mon, Aug 8, 2016 at 9:13 AM, Omar Zahra <<a href="mailto:omar.zahra@ejust.edu.eg">omar.zahra@ejust.edu.eg</a>> wrote:<br>
> Hello,<br>
><br>
> I am new to NENGO and also just started using python to deal with NENGO. I<br>
> would like to build part of the brain by connecting some layers. These<br>
> connections are supposed to be topological. I would like also to apply some<br>
> function across these connections. When I try to use connection to the whole<br>
> ensemble, I cannot define the connections perfectly as done in case of<br>
> making connections neuron by neuron -using Ensemble.neurons[] -. I tried<br>
> even increasing the dimensions of the ensemble and setting the encoders such<br>
> as to give seperate action for each neuron, still some unintended response<br>
> appears.<br>
> Reply ASAP please. Thanks in advance<br>
><br>
> --<br>
> Best Regards<br>
> Omar Ibn ElKhatab AbdAllah Zahra<br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> nengo-user mailing list<br>
> <a href="mailto:nengo-user@ctnsrv.uwaterloo.ca">nengo-user@ctnsrv.uwaterloo.ca</a><br>
> <a href="http://ctnsrv.uwaterloo.ca/mailman/listinfo/nengo-user" rel="noreferrer" target="_blank">http://ctnsrv.uwaterloo.ca/<wbr>mailman/listinfo/nengo-user</a><br>
><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Best Regards<div>Omar Ibn ElKhatab AbdAllah Zahra</div></div></div>
</div>