[nengo-user] Adjusting topological connections
Terry Stewart
terry.stewart at gmail.com
Mon Aug 8 12:04:41 EDT 2016
I think the problem is that you're trying to specify a function as
well. What function are you trying to do?
The problem is that you're specifying the connection weights in two
different ways. When you save function=something, Nengo uses that
function to find the optimal connection weights to approximate that
function. So you can't also manually specify the connection weights,
since that's exactly what you've told nengo to solve for on its own!
Terry
On Mon, Aug 8, 2016 at 12:00 PM, Omar Zahra <omar.zahra at ejust.edu.eg> wrote:
> Hello Terry,
>
> Thanks for your reply. I already used this to make a connection.
> My problem is that I cannot " nengo.Connection(a.neurons, b.neurons,
> transform=matrix, function = func)" because it must be applied to an
> Ensemble.
> I hope you have some solution for this problem.
>
> On Mon, Aug 8, 2016 at 5:47 PM, Terry Stewart <terry.stewart at gmail.com>
> wrote:
>>
>> 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
>> >
>
>
>
>
> --
> Best Regards
> Omar Ibn ElKhatab AbdAllah Zahra
More information about the nengo-user
mailing list