ECJ-INTEREST-L Archives

June 2008

ECJ-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Proportional Font
Show Text Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender:
ECJ Evolutionary Computation Toolkit <[log in to unmask]>
Date:
Tue, 24 Jun 2008 11:05:05 -0400
MIME-version:
1.0 (Apple Message framework v753.1)
Reply-To:
ECJ Evolutionary Computation Toolkit <[log in to unmask]>
Content-type:
text/plain; charset=US-ASCII; delsp=yes; format=flowed
Subject:
From:
Sean Luke <[log in to unmask]>
In-Reply-To:
Content-transfer-encoding:
7bit
Comments:
To: ECJ Evolutionary Computation Toolkit <[log in to unmask]>
Parts/Attachments:
text/plain (37 lines)
Interesting question.  prepareToEvaluate has a different purpose than  
what you're looking for.  What you want to do is have the prototype  
Problem generate its test cases prior to being cloned each  
generation.  You could do this by overriding the  
Evaluator.evaluatePopulation method to call some method on the  
Problem and then calling super.evaluatePopulation.  Alternatively you  
could stick in a Statistics subclass into the Statistics chain which  
overrides its preEvaluationStatistics method to call the method on  
the Problem.

Sean

On Jun 24, 2008, at 10:42 AM, David R White wrote:

> Hi,
>
> I would like to create a single set of test cases for all  
> individuals in a generation, and still be able to use multithreaded  
> evaluation.
> Is it possible to do this in an elegant manner?  If I use  
> "prepareToEvaluate" then it will be called for each Problem  
> instance that is cloned, i.e. once for each thread, and as my test  
> cases are probabilistically selected I will end up with a different  
> set of tests cases for each thread, which I don't want!
> Any help appreciated,
>
> Thanks
>
> David
>
> --
>
> David R White
> PhD Student
> Dept of Computer Science
> University of York, UK.

ATOM RSS1 RSS2