Helper functions to inspect generations and return run-time information, statistics, etc.
Helper functions to inspect generations and return run-time information, statistics, etc.
(apply-monitors monitors population current-generation)
Apply each function in monitors
against population
and current-generation
Apply each function in `monitors` against `population` and `current-generation`
(mk-monitor monitor-fn population current-generation)
(mk-monitor monitor-fn population current-generation format-fn)
Apply monitor-fn
to the population
and current-generation
, and print the result.
If a format-fn
has been supplied, modify the output before printing.
This is useful for separating the monitor code into a separate testable function.
Apply `monitor-fn` to the `population` and `current-generation`, and print the result. If a `format-fn` has been supplied, modify the output before printing. This is useful for separating the monitor code into a separate testable function.
(print-best-solution population current-generation)
Finds the individual with the highest fitness in population
, and prints it to std-out
Finds the individual with the highest fitness in `population`, and prints it to std-out
(print-best-solution* population current-generation)
Finds the individual with the highest fitness in population
Finds the individual with the highest fitness in `population`
(print-fitness-score-frequencies population current-generation)
Finds how frequently each fitness score is repeated across the population
, and prints it to std-out
Finds how frequently each fitness score is repeated across the `population`, and prints it to std-out
(print-fitness-score-frequencies* population current-generation)
Finds how frequently each fitness score is repeated across the population
Finds how frequently each fitness score is repeated across the `population`
(print-solution-frequencies population current-generation)
Finds how frequently each genetic sequence is repeated across the population
, and prints it to std-out
Finds how frequently each genetic sequence is repeated across the `population`, and prints it to std-out
(print-solution-frequencies* population current-generation)
Finds how frequently each genetic sequence is repeated across the population
Finds how frequently each genetic sequence is repeated across the `population`
(print-worst-solution population current-generation)
Finds the individual with the lowest fitness in population
, and prints it to std-out
Finds the individual with the lowest fitness in `population`, and prints it to std-out
(print-worst-solution* population current-generation)
Finds the individual with the lowest fitness in population
Finds the individual with the lowest fitness in `population`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close