Blubaugh, David A. wrote:
> Have you ever worked with Gene Expression Programming
>
No.
Why?
/W
--
http://mail.python.org/mailman/listinfo/python-list
Sir,
Have you ever worked with Gene Expression Programming
David Blubaugh
-Original Message-
From: Wildemar Wildenburger [mailto:[EMAIL PROTECTED]
Sent: Monday, January 28, 2008 7:24 AM
To: python-list@python.org
Subject: Re: Python Genetic Algorithm
Steven D'Aprano
On Jan 27, 7:25 pm, Steven D'Aprano <[EMAIL PROTECTED]
cybersource.com.au> wrote:
> Just pass the class itself. For example:
>
> # Define a class.
> class Parrot(object):
> pass
>
> x = "Parrot" # x is the NAME of the class
> y = Parrot # y is the CLASS itself
> z = Parrot() # z is an INSTAN
Max,
def GeneticNextGen(self):
numsets = len(self.WtSets)
numwts= len(self.WtSets[0].Lis)
self.WtSets.sort(CompByCurrentFitness)
index_lis = []
K = 100.0
N= float(numwts)
#if RISE(slope) is too high, concentration occ
Steven D'Aprano wrote:
>> I'm not sure I'm following you here. So a "chromosome" is bit of
>> functionality, right? So basically it is a function. So my advice would
>> be to write these functions and store it to the "indivuals"-list like
>> so:
>
> No, a chromosome is a bit of *data*: a noun, not
On Mon, 28 Jan 2008 00:35:51 +0100, Wildemar Wildenburger wrote:
> Max wrote:
>> In GAs, you operate on a Population of solutions. Each Individual from
>> the Population is a potential solution to the problem you're
>> optimizing, and Individuals have what's called a chromosome - a
>> specificatio
On Jan 27, 8:01 pm, "Terry Reedy" <[EMAIL PROTECTED]> wrote:
> "Max" <[EMAIL PROTECTED]> wrote in message
>
> news:[EMAIL PROTECTED]
> | In GAs, you operate on a Population of solutions. Each Individual from
> | the Population is a potential solution to the problem you're
> | optimizing, and Indivi
"Max" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
| In GAs, you operate on a Population of solutions. Each Individual from
| the Population is a potential solution to the problem you're
| optimizing, and Individuals have what's called a chromosome - a
| specification of what it co
On Jan 27, 7:25 pm, Steven D'Aprano <[EMAIL PROTECTED]
cybersource.com.au> wrote:
> On Sun, 27 Jan 2008 15:09:52 -0800, Max wrote:
> > Hi all. I'm just getting introduced to Python (mostly through Dive Into
> > Python), and I've decided to use it for a project where I have to write
> > my own Genet
On Sun, 27 Jan 2008 15:09:52 -0800, Max wrote:
> Hi all. I'm just getting introduced to Python (mostly through Dive Into
> Python), and I've decided to use it for a project where I have to write
> my own Genetic Algorithm. Even if you don't know about GAs, you might be
> able to help with an issue
On Jan 27, 7:01 pm, "Steven Clark" <[EMAIL PROTECTED]> wrote:
> Why not make chromosome itself a class?
>
> class BasicChromosome(object):
> def __init__(self, data):
> self.data = data
>
> def crossover(self):
> [stuff here]
>
> You can subclass this as needed, altering the
On Jan 27, 6:35 pm, Wildemar Wildenburger
<[EMAIL PROTECTED]> wrote:
> Max wrote:
> > In GAs, you operate on a Population of solutions. Each Individual from
> > the Population is a potential solution to the problem you're
> > optimizing, and Individuals have what's called a chromosome - a
> > speci
Why not make chromosome itself a class?
class BasicChromosome(object):
def __init__(self, data):
self.data = data
def crossover(self):
[stuff here]
You can subclass this as needed, altering the crossover method as necessary.
...perhaps I didn't understand your question.
Max wrote:
> In GAs, you operate on a Population of solutions. Each Individual from
> the Population is a potential solution to the problem you're
> optimizing, and Individuals have what's called a chromosome - a
> specification of what it contains. For example, common chromosomes are
> bit strings
14 matches
Mail list logo