Page 1 of 1

NEURON + Python + Genetic Algorithms

Posted: Fri Dec 09, 2011 1:55 am
by slarson
Hi,

I wonder if others have experience combining the Python build of NEURON with external software to do optimization, like say with custom Genetic Algorithm code. I imagine that NeuroFitter does something like this, but not via Python.

I'm looking for a high-level software strategy of how this could be accomplished. If you have any suggestions it would be most appreciated.

Thanks,
Stephen

Re: NEURON + Python + Genetic Algorithms

Posted: Fri Dec 16, 2011 9:32 am
by hines
This may not be analogous to what you desire but an example of adding the Scipy bfgs optimizer as an alternative to praxis in the MultipleRunFitter is in the bfgswrap.py
file of the bfilt repository. i.e.
http://www.neuron.yale.edu/hg/z/bfilt/f ... fgswrap.py

Re: NEURON + Python + Genetic Algorithms

Posted: Fri Dec 16, 2011 9:42 am
by hines
To run the file I mentioned in the last post, one needs to load the multiple run fitter first. e.g.

nrngui -c 'load_file("mulfit.hoc")' bfgswrap.py

If one NEURONMainMenu/Tools/Fitting/MultipleRunFitter
then the Parameters/SelectOptimizer menu will have a BFGS item.