From 0e299265f521a71dce28a4e31a5138fe3199af0f Mon Sep 17 00:00:00 2001 From: danielwilczak101 <44122838+danielwilczak101@users.noreply.github.com> Date: Fri, 4 Dec 2020 03:22:25 -0500 Subject: [PATCH 1/4] Changed adapt rate = 0 so i can push to pypi --- src/attributes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/attributes.py b/src/attributes.py index 864541b..b18484f 100644 --- a/src/attributes.py +++ b/src/attributes.py @@ -66,7 +66,7 @@ class Attributes: percent_converged = 0.50, chromosome_mutation_rate = 0.15, gene_mutation_rate = 0.05, - adapt_rate = 0.20, + adapt_rate = 0.0, adapt_probability_rate = 0.15, adapt_population_flag = True, max_selection_probability = 0.99, From f683e23ba3f74881dbc196af4465b736c3365509 Mon Sep 17 00:00:00 2001 From: danielwilczak101 <44122838+danielwilczak101@users.noreply.github.com> Date: Fri, 4 Dec 2020 03:24:22 -0500 Subject: [PATCH 2/4] Setup.py now had tabulate included and update version number --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index eefabd1..77704cc 100644 --- a/setup.py +++ b/setup.py @@ -28,6 +28,7 @@ setup( ], install_requires = ["matplotlib ~= 3.3.2", "pyserial ~= 3.4", - "pytest>=3.7" + "pytest>=3.7", + "tabulate >=0.8.7" ], ) From a0423e313e7a9a2b8caaf95c898db4a92e3fcdd8 Mon Sep 17 00:00:00 2001 From: danielwilczak101 <44122838+danielwilczak101@users.noreply.github.com> Date: Fri, 4 Dec 2020 03:24:51 -0500 Subject: [PATCH 3/4] version number --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 77704cc..1212dc7 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ with open("README.md", "r") as fh: setup( name='EasyGA', - version='0.0.32', + version='0.0.33', description='EasyGA is a python package designed to provide an easy-to-use Genetic Algorithm. The package is designed to work right out of the box, while also allowing the user to customize features as they see fit.', py_modules=["EasyGA","attributes","test_EasyGA"], packages=find_packages(where='EasyGA'), From 05fa220d61860707693830403f5b36bc5bdd9d57 Mon Sep 17 00:00:00 2001 From: danielwilczak101 <44122838+danielwilczak101@users.noreply.github.com> Date: Fri, 4 Dec 2020 03:34:03 -0500 Subject: [PATCH 4/4] Changed back adapt and changed generation goal to 100 so its looks normal grpahing --- src/attributes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/attributes.py b/src/attributes.py index b18484f..50d64c7 100644 --- a/src/attributes.py +++ b/src/attributes.py @@ -60,13 +60,13 @@ class Attributes: tournament_size_ratio = 0.10, current_generation = 0, current_fitness = 0, - generation_goal = 15, + generation_goal = 100, fitness_goal = None, tolerance_goal = None, percent_converged = 0.50, chromosome_mutation_rate = 0.15, gene_mutation_rate = 0.05, - adapt_rate = 0.0, + adapt_rate = 0.20, adapt_probability_rate = 0.15, adapt_population_flag = True, max_selection_probability = 0.99,