[nengo-user] Adjusting topological connections

Terry Stewart terry.stewart at gmail.com
Mon Aug 8 11:47:31 EDT 2016


Hello Omar,

If you want to use Nengo to do manual neuron-to-neuron connection
(i.e. the sort of thing that would happen in a standard neural
simulator), then you need to connection to the ens.neurons object.
For example, here's a quick way to do random connections between two
groups of neurons:

--------------
import nengo
import numpy as np

model = nengo.Network()
with model:
    a = nengo.Ensemble(n_neurons=50, dimensions=1)
    b = nengo.Ensemble(n_neurons=50, dimensions=1)

    matrix = np.random.normal(size=(50, 50))
    nengo.Connection(a.neurons, b.neurons, transform=matrix)
-------------------------

Let us know if that helps for your situations!

Also, for future questions, we've just started up an online forum at
https://forum.nengo.ai/

Terry

On Mon, Aug 8, 2016 at 9:13 AM, Omar Zahra <omar.zahra at ejust.edu.eg> wrote:
> Hello,
>
> I am new to NENGO and also just started using python to deal with NENGO. I
> would like to build part of the brain by connecting some layers. These
> connections are supposed to be topological. I would like also to apply some
> function across these connections. When I try to use connection to the whole
> ensemble, I cannot define the connections perfectly as done in case of
> making connections neuron by neuron -using Ensemble.neurons[] -. I tried
> even increasing the dimensions of the ensemble and setting the encoders such
> as to give seperate action for each neuron, still some unintended response
> appears.
> Reply ASAP please. Thanks in advance
>
> --
> Best Regards
> Omar Ibn ElKhatab AbdAllah Zahra
>
> _______________________________________________
> nengo-user mailing list
> nengo-user at ctnsrv.uwaterloo.ca
> http://ctnsrv.uwaterloo.ca/mailman/listinfo/nengo-user
>



More information about the nengo-user mailing list