Changed fitness_examples function to examples
This commit is contained in:
@ -13,7 +13,7 @@ from structure import Chromosome as make_chromosome
|
|||||||
from structure import Gene as make_gene
|
from structure import Gene as make_gene
|
||||||
|
|
||||||
# Misc. Methods
|
# Misc. Methods
|
||||||
from fitness_examples import Fitness_Examples
|
from examples import Fitness_Examples
|
||||||
from termination import Termination
|
from termination import Termination
|
||||||
|
|
||||||
# Parent/Survivor Selection Methods
|
# Parent/Survivor Selection Methods
|
||||||
@ -135,7 +135,7 @@ class GA(Attributes):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
# Determines how much to adapt by
|
# Determines how much to adapt by
|
||||||
weight = self.adapt_probability_rate
|
weight = self.adapt_probability_rate
|
||||||
|
|
||||||
# Don't adapt
|
# Don't adapt
|
||||||
if weight is None or weight <= 0:
|
if weight is None or weight <= 0:
|
||||||
|
|||||||
@ -18,8 +18,8 @@ termination/
|
|||||||
#### ----- Building blocks -----
|
#### ----- Building blocks -----
|
||||||
structure/
|
structure/
|
||||||
|
|
||||||
#### ----- Fitness functions -----
|
#### ----- Example code -----
|
||||||
fitness_examples/
|
examples/
|
||||||
|
|
||||||
#### ----- Testing -----
|
#### ----- Testing -----
|
||||||
test_EasyGA.py
|
test_EasyGA.py
|
||||||
|
|||||||
@ -14,7 +14,7 @@ from structure import Chromosome as make_chromosome
|
|||||||
from structure import Gene as make_gene
|
from structure import Gene as make_gene
|
||||||
|
|
||||||
# Misc. Methods
|
# Misc. Methods
|
||||||
from fitness_examples import Fitness_Examples
|
from examples import Fitness_Examples
|
||||||
from termination import Termination
|
from termination import Termination
|
||||||
|
|
||||||
# Parent/Survivor Selection Methods
|
# Parent/Survivor Selection Methods
|
||||||
|
|||||||
Reference in New Issue
Block a user