ECJ-INTEREST-L Archives

March 2012

ECJ-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

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

Print Reply
Subject:
From:
Sean Luke <[log in to unmask]>
Reply To:
ECJ Evolutionary Computation Toolkit <[log in to unmask]>
Date:
Wed, 28 Mar 2012 18:53:16 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (33 lines)
Hi Frederick.  If your tree doesn't contain any ERCs, then it's generally pretty easy to do this.  

Let's say that the tree in question was:

(if-food-ahead (if-food-ahead move left)
(if-food-ahead left left))

You can construct a readable Individual around this with the following four lines:

Evaluated: F
Fitness: f0|0.0|i0|
Tree 0:
 (if-food-ahead (if-food-ahead move left) (if-food-ahead left left))

You'll need to make sure that your ENTIRE tree is in a single line, not multiple lines like printTreeForHumans normally does.

A file with the four lines above should be readable by readIndividual(...).

But, and here's the big but: why not just print out the tree using printTree(...) rather than printTreeForhumans(...)? Or better yet, print it out using printIndividual(...)?

Sean


On Mar 26, 2012, at 9:20 AM, Frederik wrote:

> Dear all,
>
> I was wondering if there exists an easy way to read a tree during the evolution
> that was printed out using printTreeForHumans from the GPTree class.
>
> Thanks in advance,
> Frederik

ATOM RSS1 RSS2