From 4faf2300ee43a731211afe1b0b9d7b04a1ef4124 Mon Sep 17 00:00:00 2001 From: Lee Spector Date: Wed, 30 Aug 2023 12:14:24 -0400 Subject: [PATCH] Remove most of GP function's docstring --- src/propeller/gp.cljc | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/src/propeller/gp.cljc b/src/propeller/gp.cljc index f7a3a97..84ec5ac 100644 --- a/src/propeller/gp.cljc +++ b/src/propeller/gp.cljc @@ -32,25 +32,7 @@ (println))) (defn gp - "Main GP loop. - -On each iteration, it creates a population of random plushies using a mapper -function and genome/make-random-plushy function, -then it sorts the population by the total error using the error-function -and sort-by function. It then takes the best individual from the sorted population, -and if the parent selection is set to epsilon-lexicase, it adds the epsilons to the argmap. - -The function then checks if the custom-report argument is set, -if so it calls that function passing the evaluated population, -current generation and argmap. If not, it calls the report function -passing the evaluated population, current generation and argmap. - -Then, it checks if the total error of the best individual is less than or equal -to the solution-error-threshold or if the current generation is greater than or -equal to the max-generations specified. If either is true, the function -exits with the best individual or nil. If not, it creates new individuals -for the next generation using the variation/new-individual function and the -repeatedly function, and then continues to the next iteration of the loop. " + "Main GP loop." [{:keys [population-size max-generations error-function instructions max-initial-plushy-size solution-error-threshold mapper] :or {solution-error-threshold 0.0