ECJ-INTEREST-L Archives

January 2014

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:
Jake Ehrlich <[log in to unmask]>
Reply To:
ECJ Evolutionary Computation Toolkit <[log in to unmask]>
Date:
Sat, 11 Jan 2014 02:00:27 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (30 lines)
First off I thought I sent this as an email; sorry if this is a duplicate but I don't 
see my email anywhere.

My question:

In the documentation for ec.gp.koza.CrossoverPipeline it says "Then a random 
node is chosen in each tree such that the two nodes have the same return 
type". Does "same return type" in that quote mean that the types "fit" by 
GType's compatibleWith method?

First off as I understand it GType.compatibleWith is assumed to be 
commutative (that is t1.compatibleWith(init, t2) is true if and only if 
t2.compatibleWith(init, t1) is true). Is this correct or is it just one way? That is 
Int fits {Double, Int} but {Double, Int} doesn't fit Int? This would certainly 
clear up my confusions if it were one way.

Say you have a node X of type {string, int} (a set type) and another node Y of 
type int (an atomic type). X and Y are being passed in as parameters of type 
{string, int} and int respeticvlly. These return types are "compatible" ("fit") by 
the definition of compatibleWith for GPAtomicType and GPSetType yet you 
shouldn't be allowed to swap them sense the parameter type of X's parent 
can't handle a string, only an int. 

Obliviously i'm missing something or have maid a bad assumption somewhere. 
Could someone clear this up for me?

Thanks,

Jake

ATOM RSS1 RSS2