Spaces:
Running
Running
MilesCranmer
commited on
Commit
•
f872f99
1
Parent(s):
c702e70
Always simplify tree for hall of fame
Browse files
eureqa.jl
CHANGED
@@ -578,8 +578,9 @@ function fullRun(niterations::Integer;
|
|
578 |
@inbounds Threads.@threads for i=1:nthreads
|
579 |
allPops[i] = run(allPops[i], ncyclesperiteration, annealing, verbosity=verbosity)
|
580 |
bestSubPops[i] = bestSubPop(allPops[i], topn=topn)
|
581 |
-
|
582 |
-
|
|
|
583 |
bestSubPops[i].members[j] = optimizeConstants(bestSubPops[i].members[j])
|
584 |
end
|
585 |
end
|
|
|
578 |
@inbounds Threads.@threads for i=1:nthreads
|
579 |
allPops[i] = run(allPops[i], ncyclesperiteration, annealing, verbosity=verbosity)
|
580 |
bestSubPops[i] = bestSubPop(allPops[i], topn=topn)
|
581 |
+
for j=1:bestSubPops[i].n
|
582 |
+
bestSubPops[i].members[j].tree = simplifyTree(bestSubPops[i].members[j].tree)
|
583 |
+
if shouldOptimizeConstants
|
584 |
bestSubPops[i].members[j] = optimizeConstants(bestSubPops[i].members[j])
|
585 |
end
|
586 |
end
|