Skip to content

Commit

Permalink
Fixed printing of selection counts in report
Browse files Browse the repository at this point in the history
  • Loading branch information
thelmuth committed May 24, 2015
1 parent 40e4517 commit 1ee8462
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/clojush/pushgp/report.clj
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,8 @@
(println "Number of random replacements for reproductively incompetent individuals:"
(count (filter :random-replacement-for-reproductively-incompetent-genome population)))
(when print-selection-counts
(println "SOMETHING TMH:" (sort > (concat (vals @selection-counts)
(repeat (- population-size (count @selection-counts)) 0))))
(println "Selection counts:" (sort > (concat (vals @selection-counts)
(repeat (- population-size (count @selection-counts)) 0))))
(reset! selection-counts {}))
(when @global-print-behavioral-diversity
(swap! population-behaviors #(take-last population-size %)) ; Only use behaviors during evaluation, not those during simplification
Expand Down

0 comments on commit 1ee8462

Please sign in to comment.