Re: [Tutor] Problems with a Class

2007-01-13 Thread Dom Hamon
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Carlos > Sent: 12 January 2007 16:09 > To: tutor@python.org > Subject: [Tutor] Problems with a Class > > This is the area of the algorith that I think holds the info > that I need: > > def evolve(

Re: [Tutor] Tutor Digest, Vol 35, Issue 38

2007-01-13 Thread Carlos
Hello, > Unfortunately, no. I for one can't interpret "I need the info every > time that it gets updated by the loop" The GA is creating solutions for a given problem, that are contained in self.entities that looks like this: Generation_01: [[1, 0, 0, 1, 0, 1, 0, 0, 0, 0], [0, 0, 1, 1, 1, 1, 1

Re: [Tutor] Problems with a Class

2007-01-13 Thread thomas coopman
On Sat, 13 Jan 2007 01:08:53 +0100 Carlos <[EMAIL PROTECTED]> wrote: > Hello, > > I'm just about to finish my project, but something is causing me > trouble. I need to find out how to get some information out of the > genetic algorithm that Im using. This algorithm is generating some > coordin

Re: [Tutor] Problems with a Class

2007-01-13 Thread Carlos
Hello Again, Looks like Im getting there now. I did this inside the GA module: def update(self): return self.entities now Im putting it in my code: def my_fitness(entity): x = ga.update() print 'X', x fitness = 0.0 for i in entity: if i == 1:

[Tutor] lighttpd for windows

2007-01-13 Thread OkaMthembo
hey folks! Could someone please show me where to get lighttpd for windows xp sp2? ive tried the lighttpd site but no success thanks "shortash" ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor