(-main & args)
I don't do a whole lot ... yet.
I don't do a whole lot ... yet.
(build-individual genetic-sequence fitness-function)
(build-individual genetic-sequence parent-coll age fitness-function)
Generate a new individual, and evaluate the fitness of the genetic sequence.
Generate a new individual, and evaluate the fitness of the genetic sequence.
(build-population population-size alleles sequence-length fitness-function)
Build population-size
individuals by invoking build-individual
on random, conforming genetic sequences.
Build `population-size` individuals by invoking `build-individual` on random, conforming genetic sequences.
(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
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
(generate-sequence alleles sequence-length)
Creates a genetic sequence of sequence-length
elements,
where each item is in the collection of alleles
Creates a genetic sequence of `sequence-length` elements, where each item is in the collection of `alleles`
(uuid)
More idiomatic wrapper around Java's v1 UUID functionality
More idiomatic wrapper around Java's v1 UUID functionality
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close