Rename rate to onenum, since it can be used for non-rate hyperparameters too

This commit is contained in:
Lee Spector 2023-09-03 20:54:44 -04:00
parent fad10a85b5
commit 875c0b8e73

View File

@ -129,7 +129,7 @@ multicore processor utilization, and 4) takes only one coll so far."
[sd n] [sd n]
(+ n (* sd (gaussian-noise-factor)))) (+ 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. "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 Intended for allowing arguments to genetic operators, such as mutation rates, to take
collections in addition to single values" collections in addition to single values"