This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Arrogant QLearner vs Arrogant QLearner | |
███████████████ ██████████████████████████████████████████████████████████████████████████ █ ██████████ ███ ████████████████████████ █████████████ ███ ████████████ ███ █████████ ███ █████████ ███████████████████████████████████████████████ █████████ █ ████████ ██████████████████████████████ ██████████████████████████████████████ ███ ████████████████████████████ ███████████████████████████████████ ████████████████████ ███████ ███████████████████████████████████████████████████████████████ ██████ | |
█████████████████████████████████████████████████████████████ ██████████ ██████████████████████████ ████████████████ █████████████████████████████████████ █████████ ███████████████████████████████ ███ █████████████ ████████████████████████ █████████████████████████ ██████ ██ ██████████████████████████████████ ███ ████████████████████████████ ██████████████████████████ ███████████████████ ██████████████████████████████████████████████████ ███████████████ ██████████████ ████████ ██ |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from axelrod import Actions, Player, init_args | |
C, D = Actions.C, Actions.D | |
class ANN(Player): | |
name = 'ANN' | |
classifier = { | |
'memory_depth': 1, #actually variable | |
'stochastic': True, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def evolve(starting_weights, mutation_rate, mutation_distance, generations, bottleneck, starting_pop, output_file): | |
current_bests = starting_weights | |
for generation in range(generations): | |
with open(output_file, "a") as output: | |