Skip to content

Commit

Permalink
running experiment with higher pCX
Browse files Browse the repository at this point in the history
  • Loading branch information
sverrejb committed Mar 27, 2017
1 parent 6eb82a0 commit 704fb47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions EA/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

POPSIZE = 10
DECKSIZE = 40
CROSSOVER_RATE = 0.1
CROSSOVER_RATE = 0.5
MUTATION_RATE = 0.2
NUMBER_OF_GENERATIONS = 500
NUMBER_OF_GENERATIONS = 200
MATCHES_PER_OPPONENT = '50' # must be string!
CARD_POOL = read_card_pool('../AER-POOL-1.txt')
CARD_POOL_SIZE = len(CARD_POOL)
Expand Down
2 changes: 1 addition & 1 deletion EA/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def main():
break

if gen - last_improvement > 60:
break
breakx

top_list.append(maximum)
median_list.append(median_score)
Expand Down

0 comments on commit 704fb47

Please sign in to comment.