changed name for readability
This commit is contained in:
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user