Liking cljdoc? Tell your friends :D
All platforms.

nature.core


-mainclj/s

(-main & args)

A very, very simple example

A very, very simple example
sourceraw docstring

evolveclj/s

(evolve allele-set
        genome-length
        population-size
        generations
        fitness-function
        binary-operators
        unary-operators)
(evolve allele-set
        genome-length
        population-size
        generations
        fitness-function
        binary-operators
        unary-operators
        options)

Create and evolve a population under the specified conditions until a termination criteria is reached allele-set is a collection of legal genome values genome-length is the enforced size of each genetic sequence population-size is the enforced number of individuals that will be created generations is the number of iterations the algorithm will cycle through fitness-function is a partial function accepting generated sequences to evaluate solution qualities binary-operators is a collection of partial functions accepting and returning 1 or more individuals unary-operators is a collection of partial functions accepting and returning exactly 1 individual options an optional map of pre-specified keywords to values that further tune the behavior of nature. Current examples follow: :carry-over an integer representing the top n individuals to be carried over between each generation. Default is 1 :solutions an integer representing the top n individuals to return after evolution completes. Default is 1 :monitors a sequence of functions, assumed to be side-effectful, to be executed against population and current-genration for run-time stats. Default is nil

Create and evolve a population under the specified conditions until a termination criteria is reached
`allele-set` is a collection of legal genome values
`genome-length` is the enforced size of each genetic sequence
`population-size` is the enforced number of individuals that will be created
`generations` is the number of iterations the algorithm will cycle through
`fitness-function` is a partial function accepting generated sequences to evaluate solution qualities
`binary-operators` is a collection of partial functions accepting and returning 1 or more individuals
`unary-operators` is a collection of partial functions accepting and returning exactly 1 individual
`options` an optional map of pre-specified keywords to values that further tune the behavior of nature.
    Current examples follow:
    `:carry-over` an integer representing the top n individuals to be carried over between each generation. Default is 1
    `:solutions` an integer representing the top n individuals to return after evolution completes. Default is 1
    `:monitors` a sequence of functions, assumed to be side-effectful, to be executed against `population` and `current-genration` for run-time stats. Default is nil
sourceraw docstring

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

× close