Skip to content

Commit

Permalink
Report on gene counts when using bmx-umad
Browse files Browse the repository at this point in the history
  • Loading branch information
lspector committed Nov 25, 2023
1 parent 9820645 commit 770dfe7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/propeller/gp.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
:behavioral-diversity (float (/ (count (distinct (map :behaviors pop))) (count pop)))
:average-genome-length (float (/ (reduce + (map count (map :plushy pop))) (count pop)))
:average-total-error (float (/ (reduce + (map :total-error pop)) (count pop)))}
(if (> (or (:bmx (:variation argmap)) 0) 0) ; using bmx
(if (or (> (or (:bmx (:variation argmap)) 0) 0) ; using bmx
(> (or (:bmx-umad (:variation argmap)) 0) 0)) ; using bmx-umad
{:best-gene-count (utils/count-genes (:plushy best))
:average-gene-count (float (/ (reduce + (map utils/count-genes (map :plushy pop)))
(count pop)))}
Expand Down

0 comments on commit 770dfe7

Please sign in to comment.