Free cookie consent management tool by TermsFeed Policy Generator

source: branches/OKBJavaConnector/ECJClient/src/ec/app/twobox/adf.params @ 6152

Last change on this file since 6152 was 6152, checked in by bfarka, 13 years ago

added ecj and custom statistics to communicate with the okb services #1441

File size: 3.0 KB
Line 
1# Copyright 2006 by Sean Luke and George Mason University
2# Licensed under the Academic Free License version 3.0
3# See the file "LICENSE" for more information
4
5parent.0 = ../../gp/koza/koza.params
6
7# First, we're gonna change the number of trees in
8# the individual, to accommodate the ADFs
9# Each of our three trees uses a different tree constraints,
10# tc0, tc1, tc2
11
12pop.subpop.0.species.ind.numtrees = 2
13
14# "The result-producing branch" (Koza-II p. 84)
15pop.subpop.0.species.ind.tree.0 = ec.gp.GPTree
16pop.subpop.0.species.ind.tree.0.tc = tc0
17# "ADF0 body" (Koza-II p. 84)
18pop.subpop.0.species.ind.tree.1 = ec.gp.GPTree
19pop.subpop.0.species.ind.tree.1.tc = tc1
20
21
22# Now, let's define what tc0, and tc1 are.
23# Each has a different function set, f0 and f1
24
25gp.tc.size = 2
26
27gp.tc.0 = ec.gp.GPTreeConstraints
28gp.tc.0.name = tc0
29gp.tc.0.fset = f0
30gp.tc.0.returns = nil
31gp.tc.0.init = ec.gp.koza.HalfBuilder
32gp.tc.0.init.growp = 0.5
33gp.tc.0.init.min = 2
34gp.tc.0.init.max = 6
35
36gp.tc.1 = ec.gp.GPTreeConstraints
37gp.tc.1.name = tc1
38gp.tc.1.fset = f1
39gp.tc.1.returns = nil
40gp.tc.1.init = ec.gp.koza.HalfBuilder
41gp.tc.1.init.growp = 0.5
42gp.tc.1.init.min = 2
43gp.tc.1.init.max = 6
44
45
46
47
48# Now we define the two function sets f0 and f1
49
50gp.fs.size = 2
51gp.fs.0 = ec.gp.GPFunctionSet
52gp.fs.0.name = f0
53gp.fs.0.size = 11
54gp.fs.0.func.0 = ec.app.twobox.func.L0
55gp.fs.0.func.0.nc = nc0
56gp.fs.0.func.1 = ec.app.twobox.func.W0
57gp.fs.0.func.1.nc = nc0
58gp.fs.0.func.2 = ec.app.twobox.func.H0
59gp.fs.0.func.2.nc = nc0
60gp.fs.0.func.3 = ec.app.twobox.func.L1
61gp.fs.0.func.3.nc = nc0
62gp.fs.0.func.4 = ec.app.twobox.func.W1
63gp.fs.0.func.4.nc = nc0
64gp.fs.0.func.5 = ec.app.twobox.func.H1
65gp.fs.0.func.5.nc = nc0
66gp.fs.0.func.6 = ec.app.twobox.func.Add
67gp.fs.0.func.6.nc = nc2
68gp.fs.0.func.7 = ec.app.twobox.func.Sub
69gp.fs.0.func.7.nc = nc2
70gp.fs.0.func.8 = ec.app.twobox.func.Mul
71gp.fs.0.func.8.nc = nc2
72gp.fs.0.func.9 = ec.app.twobox.func.Div
73gp.fs.0.func.9.nc = nc2
74gp.fs.0.func.10 = ec.gp.ADF
75# tree 1 (the "ADF0 body")
76gp.fs.0.func.10.tree = 1
77gp.fs.0.func.10.name = ADF0
78gp.fs.0.func.10.nc = nc3
79
80
81
82gp.fs.1 = ec.gp.GPFunctionSet
83gp.fs.1.name = f1
84gp.fs.1.size = 7
85gp.fs.1.func.0 = ec.app.twobox.func.Add
86gp.fs.1.func.0.nc = nc2
87gp.fs.1.func.1 = ec.app.twobox.func.Sub
88gp.fs.1.func.1.nc = nc2
89gp.fs.1.func.2 = ec.app.twobox.func.Mul
90gp.fs.1.func.2.nc = nc2
91gp.fs.1.func.3 = ec.app.twobox.func.Div
92gp.fs.1.func.3.nc = nc2
93gp.fs.1.func.4 = ec.gp.ADFArgument
94gp.fs.1.func.4.arg = 0
95gp.fs.1.func.4.name = ARG0
96gp.fs.1.func.4.nc = nc0
97gp.fs.1.func.5 = ec.gp.ADFArgument
98gp.fs.1.func.5.arg = 1
99gp.fs.1.func.5.name = ARG1
100gp.fs.1.func.5.nc = nc0
101gp.fs.1.func.6 = ec.gp.ADFArgument
102gp.fs.1.func.6.arg = 2
103gp.fs.1.func.6.name = ARG2
104gp.fs.1.func.6.nc = nc0
105
106
107#
108# We specify our problem here
109#
110
111eval.problem = ec.app.twobox.TwoBox
112eval.problem.data = ec.app.twobox.TwoBoxData
113
114# Define our training set size and range here
115eval.problem.size = 10
116eval.problem.range = 10
Note: See TracBrowser for help on using the repository browser.