Skip to content

Commit

Permalink
Fix typo in gp.genGrow() conditon docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
loganthomas committed Oct 2, 2019
1 parent cd5447d commit 58bd1df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deap/gp.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ def genGrow(pset, min_, max_, type_=None):

def condition(height, depth):
"""Expression generation stops when the depth is equal to height
or when it is randomly determined that a a node should be a terminal.
or when it is randomly determined that a node should be a terminal.
"""
return depth == height or \
(depth >= min_ and random.random() < pset.terminalRatio)
Expand Down

0 comments on commit 58bd1df

Please sign in to comment.