From 0e96bc1fd173e098b2b58cad3ae227fb5f104d9c Mon Sep 17 00:00:00 2001 From: Kai Staats Date: Fri, 11 Aug 2017 00:38:24 +0100 Subject: [PATCH] reset default precision to 6 --- karoo_gp_main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/karoo_gp_main.py b/karoo_gp_main.py index 98cc3f3..55ab1ac 100644 --- a/karoo_gp_main.py +++ b/karoo_gp_main.py @@ -156,8 +156,8 @@ gp.evolve_point = int(0.0 * gp.tree_pop_max) # quantity of a population generate gp.evolve_branch = int(0.2 * gp.tree_pop_max) # quantity of a population generated through Branch Mutation gp.evolve_cross = int(0.7 * gp.tree_pop_max) # quantity of a population generated through Crossover -gp.tourn_size = 10 # qty of individuals entered into each tournament (standard 10); can be adjusted in 'i'nteractive mode -gp.precision = 1 # the number of floating points for the round function in 'fx_fitness_eval'; hard coded +gp.tourn_size = 7 # qty of individuals entered into each tournament (standard 10); can be adjusted in 'i'nteractive mode +gp.precision = 6 # the number of floating points for the round function in 'fx_fitness_eval'; hard coded #++++++++++++++++++++++++++++++++++++++++++