Report on gene counts when using bmx-umad

This commit is contained in:
Lee Spector 2023-11-25 10:16:31 -05:00
parent 98206458d8
commit 770dfe74b1

View File

@ -36,7 +36,8 @@
:behavioral-diversity (float (/ (count (distinct (map :behaviors pop))) (count pop))) :behavioral-diversity (float (/ (count (distinct (map :behaviors pop))) (count pop)))
:average-genome-length (float (/ (reduce + (map count (map :plushy 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)))} :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)) {:best-gene-count (utils/count-genes (:plushy best))
:average-gene-count (float (/ (reduce + (map utils/count-genes (map :plushy pop))) :average-gene-count (float (/ (reduce + (map utils/count-genes (map :plushy pop)))
(count pop)))} (count pop)))}