Updated naming convetions.

This commit is contained in:
danielwilczak101
2021-01-26 21:44:42 -06:00
parent c55da1f932
commit 67e73487f8
5 changed files with 7 additions and 6 deletions

View File

@ -1,4 +1,4 @@
# Import math for square root (ga.dist()) and ceil (crossover methods)
# Import math for square root (ga.dist()) and ceil (crossover methods)
import math
# Import random for many methods
@ -13,7 +13,7 @@ from structure import Chromosome as make_chromosome
from structure import Gene as make_gene
# Misc. Methods
from examples import Fitness_Examples
from examples import Fitness
from termination import Termination
# Parent/Survivor Selection Methods

View File

@ -14,7 +14,7 @@ from structure import Chromosome as make_chromosome
from structure import Gene as make_gene
# Misc. Methods
from examples import Fitness_Examples
from examples import Fitness
from termination import Termination
# Parent/Survivor Selection Methods
@ -37,14 +37,14 @@ import matplotlib.pyplot as plt
class Attributes:
"""Default GA attributes can be found here. If any attributes have not
been set then they will fall back onto the default attribute. All
attributes have been catigorized to explain sections in the ga process."""
attributes have been catigorized to explain sections in the ga process."""
#=====================#
# Default GA methods: #
#=====================#
# Default EasyGA implimentation structure
fitness_function_impl = Fitness_Examples.is_it_5
fitness_function_impl = Fitness.is_it_5
make_population = make_population
make_chromosome = make_chromosome
make_gene = make_gene

View File

@ -2,7 +2,8 @@
import matplotlib.pyplot as plt
class Matplotlib_Graph:
"""Prebuilt graphing functions to make visual represention of fitness data. """
"""Prebuilt graphing functions to make visual
represention of fitness data."""
# Common graphing functions
type_of_graph_dict = {