Structure change to make it easier for users to clone and use the repository.
This commit is contained in:
@ -1 +0,0 @@
|
|||||||
|
|
||||||
@ -97,13 +97,15 @@ class GA(Attributes):
|
|||||||
|
|
||||||
|
|
||||||
def update_population(self):
|
def update_population(self):
|
||||||
"""Updates the population to the new population and resets the mating pool and new population."""
|
"""Updates the population to the new population and resets
|
||||||
|
the mating pool and new population."""
|
||||||
|
|
||||||
self.population.update()
|
self.population.update()
|
||||||
|
|
||||||
|
|
||||||
def reset_run(self):
|
def reset_run(self):
|
||||||
"""Resets a run by re-initializing the population and modifying counters."""
|
"""Resets a run by re-initializing the population
|
||||||
|
and modifying counters."""
|
||||||
|
|
||||||
self.initialize_population()
|
self.initialize_population()
|
||||||
self.current_generation = 0
|
self.current_generation = 0
|
||||||
@ -111,7 +113,8 @@ class GA(Attributes):
|
|||||||
|
|
||||||
|
|
||||||
def active(self):
|
def active(self):
|
||||||
"""Returns if the ga should terminate based on the termination implimented."""
|
"""Returns if the ga should terminate based on the
|
||||||
|
termination implimented."""
|
||||||
|
|
||||||
return self.termination_impl()
|
return self.termination_impl()
|
||||||
|
|
||||||
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
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.
|
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.
|
||||||
|
|
||||||
### Check out our [wiki](https://github.com/danielwilczak101/EasyGA/wiki) for more information.
|
## Check out our [wiki](https://github.com/danielwilczak101/EasyGA/wiki) for more information.
|
||||||
|
|
||||||
## Installation:
|
## Installation:
|
||||||
|
|
||||||
|
|||||||
@ -1,25 +0,0 @@
|
|||||||
### ----- To run from the downloaded source code -----
|
|
||||||
run.py
|
|
||||||
|
|
||||||
#### ----- Main functionality files -----
|
|
||||||
EasyGA.py
|
|
||||||
attributes.py
|
|
||||||
|
|
||||||
#### ----- Decorators used to simply code -----
|
|
||||||
decorators.py
|
|
||||||
|
|
||||||
#### ----- Genetic Algorithm process -----
|
|
||||||
crossover/
|
|
||||||
mutation/
|
|
||||||
parent/
|
|
||||||
survivor/
|
|
||||||
termination/
|
|
||||||
|
|
||||||
#### ----- Building blocks -----
|
|
||||||
structure/
|
|
||||||
|
|
||||||
#### ----- Example code -----
|
|
||||||
examples/
|
|
||||||
|
|
||||||
#### ----- Testing -----
|
|
||||||
test_EasyGA.py
|
|
||||||
Reference in New Issue
Block a user