diff --git a/src/EasyGA.py b/src/EasyGA.py index 6deca53..2a0b9c9 100644 --- a/src/EasyGA.py +++ b/src/EasyGA.py @@ -13,7 +13,7 @@ from structure import Chromosome as make_chromosome from structure import Gene as make_gene # Misc. Methods -from fitness_examples import Fitness_Examples +from examples import Fitness_Examples from termination import Termination # Parent/Survivor Selection Methods @@ -135,7 +135,7 @@ class GA(Attributes): """ # Determines how much to adapt by - weight = self.adapt_probability_rate + weight = self.adapt_probability_rate # Don't adapt if weight is None or weight <= 0: diff --git a/src/README.md b/src/README.md index 0be1818..f86c26b 100644 --- a/src/README.md +++ b/src/README.md @@ -18,8 +18,8 @@ termination/ #### ----- Building blocks ----- structure/ -#### ----- Fitness functions ----- -fitness_examples/ +#### ----- Example code ----- +examples/ #### ----- Testing ----- test_EasyGA.py diff --git a/src/attributes.py b/src/attributes.py index 292b5c7..5803180 100644 --- a/src/attributes.py +++ b/src/attributes.py @@ -14,7 +14,7 @@ from structure import Chromosome as make_chromosome from structure import Gene as make_gene # Misc. Methods -from fitness_examples import Fitness_Examples +from examples import Fitness_Examples from termination import Termination # Parent/Survivor Selection Methods diff --git a/src/fitness_examples/Fitness_Examples.py b/src/examples/Fitness_Examples.py similarity index 100% rename from src/fitness_examples/Fitness_Examples.py rename to src/examples/Fitness_Examples.py diff --git a/src/fitness_examples/README.md b/src/examples/README.md similarity index 100% rename from src/fitness_examples/README.md rename to src/examples/README.md diff --git a/src/fitness_examples/__init__.py b/src/examples/__init__.py similarity index 100% rename from src/fitness_examples/__init__.py rename to src/examples/__init__.py diff --git a/src/fitness_examples/test_methods.py b/src/examples/test_methods.py similarity index 100% rename from src/fitness_examples/test_methods.py rename to src/examples/test_methods.py