<div dir="ltr"><div><div><div><div><div><div>Hi Peter,<br><br></div>A NodeFactory is the thing that actually generates the neuron objects that make up an ensemble. By default the `make` function uses a LIFNeuronFactory, which means that the ensemble will be made up of LIF neurons. If you want to use a different type of neuron, then you need to pass the corresponding NodeFactory to the `node_factory` parameter of the `make` function. For example, to make an ensemble with ALIF neurons you could do<br>
```<br></div><div>import nef<br></div><div>from ca.nengo.model.neuron.impl import ALIFNeuronFactory<br></div>net = nef.Network("alif_network")<br></div>net.make("alif_ensemble", 100, 1, node_factory=ALIFNeuronFactory())<br>
```<br></div>You can change the parameters of the ALIF neurons by passing different arguments to the ALIFNeuronFactory constructor (see ALIFNeuronFactory.java for what's available). Sorry that isn't better documented, we almost always use LIF neurons in our work <br>
so I don't think this is in any of our examples.<br><br></div>I would actually recommend using the development release of Nengo 1.4. It's quite stable, as most of the active development work has moved on to Nengo 2.0, and it includes some useful improvements and bug fixes since the stable release.<br>
<br></div>Daniel<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 18 July 2014 16:08, Johnson, Peter S <span dir="ltr"><<a href="mailto:peter.s.johnson@lmco.com" target="_blank">peter.s.johnson@lmco.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">How would one create a node with ALIF neurons (or any non LIF neuron)? Relatedly, what is a NodeFactory and how is it used in the context of the make function?<u></u><u></u></p>
<p class="MsoNormal">Sorry if this is in the docs; I was unable to find it.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">NB: I am using the last stable release of nengo. Is there any particular reason to prefer one over the other?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
<p class="MsoNormal">-Peter Johnson<u></u><u></u></p>
</div>
</div>
<br>_______________________________________________<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" target="_blank">http://ctnsrv.uwaterloo.ca/mailman/listinfo/nengo-user</a><br>
<br></blockquote></div><br></div>