1 | #include <stdio.h> |
---|
2 | #include <stdio.h> |
---|
3 | #include <string.h> |
---|
4 | #include "libpge.h" |
---|
5 | |
---|
6 | void initTreeParams(char* Roots, char* Nodes, char* NonTrig, char* Leafs, GoInt UsableVarsN, GoInt MaxSize, GoInt MinSize, GoInt MaxDepth, GoInt MinDepth) { |
---|
7 | InitTreeParams(Roots, Nodes, NonTrig, Leafs, UsableVarsN, MaxSize, MinSize, MaxDepth, MinDepth); |
---|
8 | } |
---|
9 | |
---|
10 | void addTrainData(char* indepNames, char* depndNames, void* matrix, GoInt nEntries) { |
---|
11 | AddTrainData(indepNames, depndNames, matrix, nEntries); |
---|
12 | } |
---|
13 | |
---|
14 | void addTestData(char* indepNames, char* depndNames, void* matrix, GoInt nEntries) { |
---|
15 | AddTestData(indepNames, depndNames, matrix, nEntries); |
---|
16 | } |
---|
17 | |
---|
18 | char* getStepResult(GoInt* testscore, GoInt* ncoeff) { |
---|
19 | return GetStepResult(testscore, ncoeff); |
---|
20 | } |
---|
21 | |
---|
22 | void initSearch(GoInt maxGen, GoInt pgeRptEpoch, GoInt pgeRptCount, GoInt pgeArchiveCap, GoInt peelCnt, GoInt evalrCount, GoFloat64 zeroEpsilon, char* initMethod, char* growMethod, GoInt sortType) { |
---|
23 | InitSearch(maxGen, pgeRptEpoch, pgeRptCount, pgeArchiveCap, peelCnt, evalrCount, zeroEpsilon, initMethod, growMethod, sortType); |
---|
24 | } |
---|
25 | |
---|
26 | void initProblem(char* Name, GoInt MaxIter, GoFloat64 HitRatio, GoInt SearchVar, char* ProblemTypeString, GoInt numProcs) { |
---|
27 | InitProblem(Name, MaxIter, HitRatio, SearchVar, ProblemTypeString, numProcs); |
---|
28 | } |
---|
29 | |
---|
30 | GoFloat64 getCoeffResult() { |
---|
31 | return GetCoeffResult(); |
---|
32 | } |
---|
33 | |
---|
34 | GoInt getMaxIterW() { |
---|
35 | return GetMaxIterW(); |
---|
36 | } |
---|
37 | |
---|
38 | void setMaxIterW(GoInt iter) { |
---|
39 | SetMaxIterW(iter); |
---|
40 | } |
---|
41 | |
---|
42 | void setPeelCountW(GoInt cnt) { |
---|
43 | SetPeelCountW(cnt); |
---|
44 | } |
---|
45 | |
---|
46 | void setInitMethodW(GoString init) { |
---|
47 | SetInitMethodW(init); |
---|
48 | } |
---|
49 | |
---|
50 | void setGrowMethodW(GoString grow) { |
---|
51 | SetGrowMethodW(grow); |
---|
52 | } |
---|
53 | |
---|
54 | void setEvalrCountW(GoInt cnt) { |
---|
55 | SetEvalrCountW(cnt); |
---|
56 | } |
---|
57 | |
---|
58 | void evaluateW() { |
---|
59 | EvaluateW(); |
---|
60 | } |
---|
61 | |
---|
62 | void runW() { |
---|
63 | RunW(); |
---|
64 | } |
---|
65 | |
---|
66 | void loopW() { |
---|
67 | LoopW(); |
---|
68 | } |
---|
69 | |
---|
70 | int stepW() { |
---|
71 | return StepW(); |
---|
72 | } |
---|
73 | |
---|
74 | void cleanW() { |
---|
75 | CleanW(); |
---|
76 | } |
---|