Updated naming convetions.
This commit is contained in:
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user