Fixed default arguments

Reverted usage format:
GA(
    chromosome_length = 20,
    population_size = 25
)
This commit is contained in:
SimpleArt
2020-11-03 14:30:43 -05:00
parent 0c6d8060a6
commit 72a8975d03
2 changed files with 65 additions and 79 deletions

View File

@ -33,9 +33,6 @@ class GA(Attributes):
https://github.com/danielwilczak101/EasyGA/wiki
"""
def __init__(self, attributes = None):
super(GA, self).__init__({} if attributes is None else attributes)
def evolve_generation(self, number_of_generations = 1, consider_termination = True):
"""Evolves the ga the specified number of generations."""