Skip to content

Commit

Permalink
final changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Isaac authored and Daniel Isaac committed May 9, 2019
1 parent fc46ca0 commit 0f7ec42
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Other parameters of `GAEngine` include
* `adaptive_mutation`: which is a Boolean which decides if adaptive mutation is to be used(default: True)
* `population_control`: which is a Boolean which decides whether or not the GAEngine should ensure that the population size remains the same in every evolution iteration. This ensures that any error/issue in user's custom selection or evolution code doesn't cause population size to change. (default: False)
* `hall_of_fame_injection`: which is a boolean used to carry out the injection of the best chromosome encountered so far in every 20 generations. (default: True)
* `efficient_iteration_halt`: which is a boolean used to carry out efficient_iteration_halt optimization. It stops evolving if same best fitness value is encountered for 20 consecutive generations (default: True)
* `efficient_iteration_halt`: which is a boolean used to carry out efficient_iteration_halt optimization. It stops evolving if same best fitness value is encountered for 20 consecutive generations (default: False)
* `use_pyspark`: which is a boolean used to decide if sequential execution is to be carried out or parallel execution on Apache Spark is to be carried out (default: False)

### 1.3 Crossovers, Mutations and Selection Functions
Expand Down
2 changes: 1 addition & 1 deletion pygenetic/GAEngine.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class GAEngine:
"""


def __init__(self,factory,population_size=100,cross_prob=0.7,mut_prob=0.1,fitness_type='max',adaptive_mutation=True, population_control=False,hall_of_fame_injection=True,efficient_iteration_halt=True,use_pyspark=False):
def __init__(self,factory,population_size=100,cross_prob=0.7,mut_prob=0.1,fitness_type='max',adaptive_mutation=True, population_control=False,hall_of_fame_injection=True,efficient_iteration_halt=False,use_pyspark=False):
self.fitness_func = None
self.factory = factory
self.cross_prob = cross_prob
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="pygenetic",
version="1.0.1",
version="1.0.2",
author="Bharatraj S Telkar, Daniel Isaac, Shreyas V Patil",
author_email="telkarraj@gmail.com, danielbcbs2@gmail.com, pshreyasv100@gmail.com",
description="An Efficient Python Genetic Algorithm API",
Expand Down

0 comments on commit 0f7ec42

Please sign in to comment.