Skip to content

Commit

Permalink
removed weights
Browse files Browse the repository at this point in the history
  • Loading branch information
sverrejb committed Apr 5, 2017
1 parent f061ab5 commit e92a647
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions EA/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,16 @@
DECKSIZE = 40
CROSSOVER_RATE = 0.5
MUTATION_RATE = 0.2
NUMBER_OF_GENERATIONS = 200
MATCHES_PER_OPPONENT = '50' # must be string!
NUMBER_OF_GENERATIONS = 2
MATCHES_PER_OPPONENT = '1' # must be string!
CARD_POOL = read_card_pool('../AER-pool-2.txt')
CARD_POOL_SIZE = len(CARD_POOL)
CARD_DIRECTORY = config.CARD_DIR
FORGE_PATH = config.FORGE_DIR
DECKLIST_HEADER = '[metadata]\nName=candidate\n[Main]\n'
OPPONENTS = ["GB-sealed-opponent.dck", "UWg-sealed-opponent.dck", "RG-sealed-opponent1.dck",
"BGw-sealed-opponent.dck", "UR-sealed-opponent.dck", "RW-sealed-opponent.dck"]
# OPPONENTS = ["RW-sealed-opponent.dck"]
EXPERIMENT_TIMESTAMP = datetime.datetime.now().strftime("%d%m%H%M")
EXPERIMENT_FOLDER = "results/" + EXPERIMENT_TIMESTAMP
TERMINATION_TRESHOLD = 50
Expand Down
2 changes: 1 addition & 1 deletion EA/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from logger import log_experiment
from mail import send_mail

creator.create("FitnessMax", base.Fitness, weights=(1.0, 1.0, 1.0, 1.0, 1.0, 1.0))
creator.create("FitnessMax", base.Fitness, weights=(1.0,))
creator.create("Individual", list, fitness=creator.FitnessMax)


Expand Down

0 comments on commit e92a647

Please sign in to comment.