Liking cljdoc? Tell your friends :D

nature.population-operators

Functions that span or operate against entire populations

Functions that span or operate against entire populations
raw docstring

advance-generationclj/s

(advance-generation population
                    population-size
                    binary-operator-set
                    unary-operator-set)
(advance-generation population
                    population-size
                    binary-operator-set
                    unary-operator-set
                    settings)

Apply the functions in binary-operator-set until a sufficiently large population is built. Then apply functions in unary-operator-set to the result. Optionally, include a map of settings to guide overall behavior. If the :carry-over setting is added, the elite member n of the prior generation will be advanced to the next generation.

Apply the functions in `binary-operator-set` until a sufficiently large population is built.
Then apply functions in `unary-operator-set` to the result.
Optionally, include a map of `settings` to guide overall behavior.
If the `:carry-over` setting is added, the elite member `n` of the prior generation will be advanced to the next generation.
sourceraw docstring

keep-eliteclj/s

(keep-elite population number-to-keep)

Find the top number-to-keep individuals in population, and increment their ages by 1

Find the top `number-to-keep` individuals in `population`, and increment their ages by 1
sourceraw docstring

weighted-selection-of-populationclj/s

(weighted-selection-of-population population total-retrieved)
(weighted-selection-of-population population total-retrieved replace?)

Pick total-retreived individuals from population with a relative probability of the individual's fitness score divided by the population's aggregate fitness score

Pick `total-retreived` individuals from `population` with a relative probability of
the individual's fitness score divided by the population's aggregate fitness score
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close