MilesCranmer commited on
Commit
df022a0
·
1 Parent(s): b408888

Save all members

Browse files
Files changed (1) hide show
  1. eureqa.jl +1 -0
eureqa.jl CHANGED
@@ -651,6 +651,7 @@ function fullRun(niterations::Integer;
651
  # Spawn threads to run indepdent evolutions, then gather them
652
  @inbounds Threads.@threads for i=1:nthreads
653
  allPops[i] = run(allPops[i], ncyclesperiteration, annealing, verbosity=verbosity)
 
654
  bestSubPops[i] = bestSubPop(allPops[i], topn=topn)
655
  for j=1:bestSubPops[i].n
656
  bestSubPops[i].members[j].tree = simplifyTree(bestSubPops[i].members[j].tree)
 
651
  # Spawn threads to run indepdent evolutions, then gather them
652
  @inbounds Threads.@threads for i=1:nthreads
653
  allPops[i] = run(allPops[i], ncyclesperiteration, annealing, verbosity=verbosity)
654
+ topn = npop
655
  bestSubPops[i] = bestSubPop(allPops[i], topn=topn)
656
  for j=1:bestSubPops[i].n
657
  bestSubPops[i].members[j].tree = simplifyTree(bestSubPops[i].members[j].tree)