Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/07/19 06:59:25 (5 years ago)
Author:
hmaislin
Message:

#2929: Updated DLL, result error seems to be fixed, more testing is necessary

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  
    7272//export AddTrainData
    7373func 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 !!
    7575  trainData = new(probs.PointSet)
    7676 
     
    112112  goName := C.GoString(Name)
    113113  goProblemTypeString := C.GoString(ProblemTypeString)
    114   fmt.Printf("1\n")
    115114 
    116115  ep.CreatePS(goName, MaxIter, HitRatio, SearchVar, goProblemTypeString)
    117116  ep.TreeCfg = tp;
    118117  ep.UsableVars = tp.UsableVars
    119   fmt.Printf("2\n")
    120118 
    121119  cps.SetMaxIter(MaxIter)
    122120  per_eqns = make([]*probs.ExprReportArray, 1)
    123   fmt.Printf("3\n")
    124121 
    125122  ep.Train = trainDatas
    126123  ep.Test = testDatas
    127   fmt.Printf("4\n")
    128124 
    129125  initDone := make(chan int)
    130126  rt.GOMAXPROCS(numProcs)
    131127  rand.Seed(rand.Int63())
    132   fmt.Printf("5\n")
    133128 
    134129  epcomm = new(probs.ExprProblemComm)
     
    138133  epcomm.Gen = make(chan [2]int, 64)
    139134 
    140   fmt.Printf("6\n")
    141  
    142135  cps.SetProb(ep)
    143   cps.Init(initDone, ep, "dummy", epcomm)
    144   fmt.Printf("7\n")
     136  cps.Init(initDone, ep, "", epcomm)
    145137}
    146138
     
    252244  if ok && resu != nil {
    253245    stepResult = *resu
    254     nNew = nRes - nLastResults
    255     nLastResults = nRes
     246    nNew = nRes // - nLastResults
     247    nLastResults = 0 //nRes
    256248  }
    257249   
Note: See TracChangeset for help on using the changeset viewer.