From 2b234a988bd13c3896e2b028bebda76c538bbbf2 Mon Sep 17 00:00:00 2001 From: Ryan Boldi Date: Thu, 5 May 2022 13:57:59 -0400 Subject: [PATCH] breaks ties randomly --- src/propeller/tools/metrics.cljc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/propeller/tools/metrics.cljc b/src/propeller/tools/metrics.cljc index d0039c3..5a5a9a4 100755 --- a/src/propeller/tools/metrics.cljc +++ b/src/propeller/tools/metrics.cljc @@ -4,11 +4,10 @@ (defn argmax "returns the index of the maximum value in a list" [coll] - ;(prn {:func :argmax :coll coll}) (->> coll (map-indexed vector) (apply max-key second) - first)) + rand-nth)) (defn mean "Returns the mean of a collection."