Skip to content

Commit

Permalink
Fixes for 2D picture sample.
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeReclaimers committed Nov 23, 2019
1 parent 0b4e311 commit ee1384d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions examples/picture2d/clean.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
del genome-*.bin image-*.png
del winning-novelty-*.png novelty-*.png
3 changes: 1 addition & 2 deletions examples/picture2d/evolve_interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

from multiprocessing import Pool
import neat
from neat.six_util import itervalues

from common import eval_mono_image, eval_gray_image, eval_color_image

Expand Down Expand Up @@ -43,7 +42,7 @@ def write_config(cls, f, config):

def update(self, species_set, generation):
result = []
for s in itervalues(species_set.species):
for s in species_set.species.values():
# If any member of the species is selected (i.e., has a fitness above zero),
# mark the species as improved.
for m in s.members.values():
Expand Down
2 changes: 1 addition & 1 deletion examples/picture2d/evolve_novelty.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from Pillow import Image
from PIL import Image
import os
import random
from multiprocessing import Pool
Expand Down

0 comments on commit ee1384d

Please sign in to comment.