Search found 4 matches

by babaksm
Fri Oct 27, 2017 5:24 am
Forum: Getting started
Topic: Giving random weight to model
Replies: 7
Views: 18905

Re: Giving random weight to model

Dear Ted Thanks for your informative reply. It is a interesting code for me. I would assign simple number instead of using 'random' codes if it is supposed to give me a same number. :) However, on random class page ( https://neuron.yale.edu/neuron/static/py_doc/programming/math/random.html#random-cl...
by babaksm
Thu Oct 26, 2017 10:24 am
Forum: Getting started
Topic: Giving random weight to model
Replies: 7
Views: 18905

Re: Giving random weight to model

Thanks Ted I solved most of the problems but the only thing is that I am getting the same random number each time I run the hoc file. for weight, I need random decimal numbers between 0 and 0.02 . my new code: objref r1 r1 = new Random() r1.uniform(0,0.02) print(r1) synapseCounter = 0 for i = 0, nce...
by babaksm
Tue Oct 24, 2017 2:44 am
Forum: Getting started
Topic: Giving random weight to model
Replies: 7
Views: 18905

Re: Giving random weight to model

when I use: // Synaptic connections // //pyramidal to pyramidal objref weight weight = random(0,0.02) synapseCounter = 0 for i = 0, ncells-1{ access PY .soma for j = 0, ncells-1{ if (j!=i){ PY .soma RecurrentSynapse[synapseCounter] = new Exp2Syn() RecurrentSynapse[synapseCounter].loc(0.5) RecurrentS...
by babaksm
Mon Oct 23, 2017 3:43 am
Forum: Getting started
Topic: Giving random weight to model
Replies: 7
Views: 18905

Giving random weight to model

Hi I want to give a random weight for my network in my used model. I am beginner and this is my starting project. I am using new defined variable with round() on the "// Synaptic connections //" part but I am getting error. (instead of 0.001 which is weight on this line ( PY[j].soma Recurr...