Adding a Selection Method
- Define a selection method function in
propeller.selection
that selects an individual from the population
- Add the selection method in
propeller.selection/select-parent
under the case
call:
(defn select-parent
"Selects a parent from the population using the specified method."
[pop argmap]
(case (:parent-selection argmap)
:new-selection-method (new-selection-method )))
- When runnning a problem, specify the selection method in
:parent-selection
. For example:
lein run -m propeller.problems.simple-regression :parent-selection :new-selection-method"