From 875c0b8e735d4c0a86c8fe1f1765c2eaae830212 Mon Sep 17 00:00:00 2001 From: Lee Spector Date: Sun, 3 Sep 2023 20:54:44 -0400 Subject: [PATCH] Rename rate to onenum, since it can be used for non-rate hyperparameters too --- src/propeller/utils.cljc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/propeller/utils.cljc b/src/propeller/utils.cljc index 759fb30..43afafd 100755 --- a/src/propeller/utils.cljc +++ b/src/propeller/utils.cljc @@ -129,7 +129,7 @@ multicore processor utilization, and 4) takes only one coll so far." [sd n] (+ n (* sd (gaussian-noise-factor)))) -(defn rate +(defn onenum "If given a number, returns it. If given a collection, returns a member of the collection. Intended for allowing arguments to genetic operators, such as mutation rates, to take collections in addition to single values"