ECJ-INTEREST-L Archives

December 2010

ECJ-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Monospaced 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
Mime-Version:
1.0
Sender:
ECJ Evolutionary Computation Toolkit <[log in to unmask]>
Subject:
From:
"Dexter R. Brown" <[log in to unmask]>
Date:
Thu, 9 Dec 2010 07:49:36 -0500
Content-Transfer-Encoding:
8bit
Content-Type:
text/plain; charset="windows-1252"
Reply-To:
ECJ Evolutionary Computation Toolkit <[log in to unmask]>
Parts/Attachments:
text/plain (38 lines)
Hello,

   I am new to ECJ and I am trying to use the system as a librarary for 
symbolic regression of data points with multiple independent variables.  
I have followed the tutorial 4 and built the X, Y, DoubleData and 
MultipleRegression classes.  What I am not sure about is whether each 
independent variable needs a class representation or is the X class 
enhanced to include properties for each variable such that 
instanceX.x1...xn?  Also, I am using JNBridge to access ECJ via C#.  
Sample code below:  

public void Run(RaptorDataSet trainingSet,
                      RaptorDataSet testingSet,
                      RaptorPlugInParameters parameters)
        {
            
            SimpleEvolutionState evoState = new SimpleEvolutionState();
            
            //ensure that seed is different for each run
            evoState.randomSeedOffset = new Random
(DateTime.Now.Second).Next(); 
            
            //set user defined parameters
            evoState.breedthreads = this.GetThrdsForBreeding(parameters);
            evoState.evalthreads = this.GetThrdsEvaluation(parameters);  
            evoState.numGenerations = this.GetNumGen(parameters);
            evoState.quitOnRunComplete = this.QuitOnComplete
(parameters);
            
            //initialize population TBD
            
            //run problem TBD           
            
            //clean up
            Evolve.cleanup(evoState);
            
        }

ATOM RSS1 RSS2