Changeset 16510 for branches/2929_PrioritizedGrammarEnumeration/HeuristicLab.Algorithms.DataAnalysis.PGE/3.3/go-code/go-pge/plug/pge.go
- Timestamp:
- 01/07/19 06:59:25 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2929_PrioritizedGrammarEnumeration/HeuristicLab.Algorithms.DataAnalysis.PGE/3.3/go-code/go-pge/plug/pge.go
r16231 r16510 72 72 //export AddTrainData 73 73 func AddTrainData(indepNames *C.char, depndNames *C.char, matrix unsafe.Pointer, nEntries int) { 74 trainDatas = make([]*probs.PointSet, 1) 74 trainDatas = make([]*probs.PointSet, 1) //wieso bin i do und ned im initsearch oda so !! 75 75 trainData = new(probs.PointSet) 76 76 … … 112 112 goName := C.GoString(Name) 113 113 goProblemTypeString := C.GoString(ProblemTypeString) 114 fmt.Printf("1\n")115 114 116 115 ep.CreatePS(goName, MaxIter, HitRatio, SearchVar, goProblemTypeString) 117 116 ep.TreeCfg = tp; 118 117 ep.UsableVars = tp.UsableVars 119 fmt.Printf("2\n")120 118 121 119 cps.SetMaxIter(MaxIter) 122 120 per_eqns = make([]*probs.ExprReportArray, 1) 123 fmt.Printf("3\n")124 121 125 122 ep.Train = trainDatas 126 123 ep.Test = testDatas 127 fmt.Printf("4\n")128 124 129 125 initDone := make(chan int) 130 126 rt.GOMAXPROCS(numProcs) 131 127 rand.Seed(rand.Int63()) 132 fmt.Printf("5\n")133 128 134 129 epcomm = new(probs.ExprProblemComm) … … 138 133 epcomm.Gen = make(chan [2]int, 64) 139 134 140 fmt.Printf("6\n")141 142 135 cps.SetProb(ep) 143 cps.Init(initDone, ep, "dummy", epcomm) 144 fmt.Printf("7\n") 136 cps.Init(initDone, ep, "", epcomm) 145 137 } 146 138 … … 252 244 if ok && resu != nil { 253 245 stepResult = *resu 254 nNew = nRes - nLastResults255 nLastResults = nRes246 nNew = nRes // - nLastResults 247 nLastResults = 0 //nRes 256 248 } 257 249
Note: See TracChangeset
for help on using the changeset viewer.