gpsr Code
Status: Alpha
Brought to you by:
dancostelloe
File | Date | Author | Commit |
---|---|---|---|
bin | 2007-10-28 | dancostelloe | [r7] removed old CVS file |
datasets | 2007-09-01 | dancostelloe | [r1] added files to svn |
doc | 2007-09-01 | dancostelloe | [r1] added files to svn |
scripts | 2009-01-23 | dancostelloe | [r25] added confidence level parameter to stats script |
src | 2009-01-23 | dancostelloe | [r26] added output of raw training and testing perfor... |
LICENSE | 2007-09-01 | dancostelloe | [r1] added files to svn |
Makefile | 2007-11-19 | dancostelloe | [r13] added compiler optimisations |
Makefile.tests | 2007-09-01 | dancostelloe | [r1] added files to svn |
README | 2007-10-27 | dancostelloe | [r4] Updated readme (added MK to credits) |
makedocs.cfg | 2007-09-01 | dancostelloe | [r1] added files to svn |
gpsr README ----------- 1) type 'make' 2) assuming it works, you should have a binary called 'gpsr' in the bin directory 3) cd bin; 4) ./gpsr This will give you very short intro which describes how the program should be run. Quick start: ------------ To get cracking with a batch of 30 runs of GP on a very well known symbolic regression problem (quartic polynomial), copy the following into a bash script: ---- begin bash script ---- #!/bin/bash GP=./bin/gpsr RESULTS=/path/to/results/directory # edit as appropriate NUMRUNS=30 TRAINFILE=./datasets/quartic_train.dat TESTFILE=./datasets/quartic_test.dat for i in `seq -w $NUMRUNS` do $GP -d $TRAINFILE -f $TESTFILE -o $RESULTS/best$i -O $RESULTS/res$i done ---- end bash script ---- Edit the "results=" line to point to a location where you'd like the results to reside Make the script executable and launch away.. Use your favourite statistics package to analyse the reults. For now, I'd recommend octave (www.octave.org). CREDITS: ------- This code would not have been written had I not first been introduced to a much faster system called FastSR, implemented by Maarten Keijzer. Maarten was kind enough to share his code with me and much of the functionality that is implemented in gpsr (e.g. postfix, stack-based representation, Linear Scaling) was first implemented in his code. Thanks for the help Maarten! dan 27/10/2007