Archive for 2008
Consolidating all my blogs
18 May 2008I have started consolidating all my blogs. I won’t be blogging in this blog any longer (although I will still be blogging at the lab blog). The new blog can be found here: http://www.xavierllora.net/
Blogging from the Big Data Computing Study Group 2008
26 March 2008I was lucky to attend the Big Data Computing Study Group 2008. The line of speaker is impressive. The event was held at Yahoo! Sunnyvale, and Thomas Kwan (UIUC alumni know at Yahoo!) helped organize it. I blogged about it on my DITA blog where you can find links to all the related posts.
A simple and flexible GA loop in Python
16 January 2008Yes, yes, I know, Python. I just been playing around to see how much you can squeeze out of it and I am very surprise of how elegant it can be. Just and example. I am pretty sure you have written way to many customize GA loops that you need to tweak every now and then, if so take a look at the Python version below.
def evolve(self): """Implements a simple evolution loop""" func_calls = [] func_calls.append(self.evaluate) if ( self.env.selection!=None ) : func_calls.append(self.selection) if ( self.env.crossover!=None ) : func_calls.append(self.crossover) if ( self.env.mutation!=None ) : func_calls.append(self.mutate) if ( self.env.replacement!=None ) : func_calls.append(self.replace) [f() for i in range(self.env.length/5) for f in func_calls ]
self.evaluate() return (self.best_fitness,self.best_individual)
Where the self.env object just contains references to the methods implementing each of the functionalities generically implemented in self.evaluate, etc.. Pretty sleek.
Some notes on Python profiling
10 January 2008You may find some notes about Python profiling on my DITA blog.
GECCO 2008 Deadline Extended to January 30th
9 January 2008I just got an email from the GECCO 2008 organizers extending the deadline till January 2008.


