From 995b630ca598af16f5f941994f864ef39fee1e41 Mon Sep 17 00:00:00 2001 From: saccuz Date: Fri, 17 Nov 2023 15:10:01 +0100 Subject: [PATCH] Fix description --- byron/ea/parametric.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/byron/ea/parametric.py b/byron/ea/parametric.py index b51a655..80dbda8 100644 --- a/byron/ea/parametric.py +++ b/byron/ea/parametric.py @@ -75,12 +75,18 @@ def parametric_ea(top_frame: type[FrameABC], The size of the population lambda_ The size the offspring + max_generation + Maximum number of generation allowed + max_fitness + Fitness target top_n The size of champions population lifespan The number of generation an individual survive operators Which operators you want to use + end_conditions + List of possible conditions needed to end the evolution alpha Parameter to reduce early failure penalty for operators rewards @@ -114,7 +120,7 @@ def extimate_operator_probability(operators_list: list[Callable], iterations: in ucb = mu + radius p_temp.append(ucb) base = sum(p_temp) - return [ p / base for p in p_temp] + return [ p / base for p in p_temp ] if end_conditions: