Skip to content

Commit

Permalink
Remove call to stringify in coev/symbreg example.
Browse files Browse the repository at this point in the history
--HG--
branch : dev
  • Loading branch information
cmd-ntrf authored and felix.antoine.fortin committed Dec 13, 2013
1 parent c568909 commit b63b5cf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/coev/symbreg.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
from deap import creator
from deap import tools

from deap.gp import stringify

# GP example "symbreg.py" already defines some useful structures
sys.path.append("..")
import gp.symbreg as symbreg
Expand Down Expand Up @@ -131,7 +129,7 @@ def main():


print("Best individual GA is %s, %s" % (best_ga, best_ga.fitness.values))
print("Best individual GP is %s, %s" % (stringify(best_gp), best_gp.fitness.values))
print("Best individual GP is %s, %s" % (best_gp.to_string(), best_gp.fitness.values))

return pop_ga, pop_gp, best_ga, best_gp, logbook

Expand Down

0 comments on commit b63b5cf

Please sign in to comment.