Functions that span or operate against entire populations
Functions that span or operate against entire populations
(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.
(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
(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
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |