On Fri, Apr 5, 2013 at 7:39 PM, John Ladasky <john_lada...@sbcglobal.net> wrote: > On Friday, April 5, 2013 1:27:40 AM UTC-7, Chris Angelico wrote: >> 1) Can you optimize your algorithms? Three days of processing is... a LOT. > > Neural network training. Yes, it takes a long time. Still, it's not the > most tedious code I run. I also do molecular-dynamics simulations with > GROMACS, those runs can take over a week! > >> 2) Rewrite some key portions in C, possibly using Cython (as MRAB suggested). > > And as I replied to MRAB, my limiting code is within Numpy. I've taken care > to look for ways that I might have been using Numpy itself inefficiently (and > I did find a problem once: fixing it tripled my execution speed). But I > would like to think that Numpy itself, since it is already a C extension, > should be optimal.
Ahh, yeah, that's gonna take a while. Your minimum processing time is likely to remain fairly high. There won't be any stupidly easy improvements to make (like one of my favorite examples from databasing: an overnight job became a three-second run, just by making proper use of a Btrieve file's index). ChrisA -- http://mail.python.org/mailman/listinfo/python-list