Changeset 16666 for branches/2929_PrioritizedGrammarEnumeration/HeuristicLab.Algorithms.DataAnalysis.PGE/3.3/src/go-pge/pge
- Timestamp:
- 03/07/19 22:40:31 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2929_PrioritizedGrammarEnumeration/HeuristicLab.Algorithms.DataAnalysis.PGE/3.3/src/go-pge/pge/pge_search.go
r16620 r16666 262 262 PS.eval_out = make(chan *probs.ExprReport, 4048) 263 263 264 fmt.Printf("Init5a\n")265 264 for i := 0; i < PS.cnfg.evalrCount; i++ { 266 265 go PS.Evaluate() … … 306 305 307 306 // if PS.iter%PS.cnfg.pgeRptEpoch == 0 { 308 PS. reportExpr()307 PS.ReportExpr(false) 309 308 // } 310 309 … … 349 348 350 349 fmt.Println("PGE sending last report") 351 PS. reportExpr()350 PS.ReportExpr(false) 352 351 353 352 } … … 473 472 PS.commup.Res <- &inserts 474 473 475 PS. reportExpr()474 PS.ReportExpr(false) 476 475 PS.iter++ 477 476 … … 549 548 } 550 549 551 //Hier ist das pgeRpt problem, liefert immer die besten pgerpt cnt ergebnisse zurueck 552 // //* 553 func (PS *PgeSearch) reportExpr() { 550 func (PS *PgeSearch) ReportExpr(writeChannel bool) { 554 551 555 552 cnt := PS.cnfg.pgeRptCount 556 553 PS.Best.Sort() 557 554 558 // repo t best equations555 // report best equations 559 556 rpt := make(probs.ExprReportArray, cnt) 560 557 if PS.Best.Len() < cnt { … … 571 568 } 572 569 573 //PS.commup.Rpts <- &rpt 574 570 if writeChannel { 571 PS.commup.Rpts <- &rpt 572 } 575 573 } 576 574
Note: See TracChangeset
for help on using the changeset viewer.