From 770dfe74b1c199cc25614cb4bef6aff7922b90ed Mon Sep 17 00:00:00 2001 From: Lee Spector Date: Sat, 25 Nov 2023 10:16:31 -0500 Subject: [PATCH] Report on gene counts when using bmx-umad --- src/propeller/gp.cljc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/propeller/gp.cljc b/src/propeller/gp.cljc index 42fd861d5..f7bc44087 100644 --- a/src/propeller/gp.cljc +++ b/src/propeller/gp.cljc @@ -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)))}