changed name for readability

This commit is contained in:
danielwilczak101
2020-09-22 18:34:34 -04:00
parent 4803b1ee69
commit 7aee6b9c8a
3 changed files with 20 additions and 3 deletions

View File

@ -30,3 +30,10 @@ class GA:
# def evolve(self):
# # Evolve will run all the functions
# initialize()
def evolve():
pass
def evolve_generation(self, number_of_generations):
# This is where the generatoin progression happens.
pass

View File

@ -15,7 +15,7 @@ class defaults:
def default_fitness_function():
pass
def default_initialize_functio():
def default_initialize_function():
return random_initialization()
def default_selection_function():
@ -27,5 +27,15 @@ class defaults:
def default_mutations_function():
return per_gene_mutation()
def default_termination_function(generations):
return generation_termination(generations)
def default_termination_point_function(amount):
# The default termination point is based on how
# many generations the user wants to run.
return generation_termination(amount)
def defult_get_highest_fitness():
# Get the highest fitness of the current generation
pass
def default_get_lowest_fitness():
# Get the lowest fitness of the current generation
pass