Skip to content

Application of a NEAT (NeuroEvolution of Augmenting Topologies) with a Connect 4 environment.

License

Notifications You must be signed in to change notification settings

GreenMachine582/NEAT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NEAT v1.6.7

Application of a NEAT (NeuroEvolution of Augmenting Topologies) with a Connect 4 environment.

Basic Usage

Setup:

from neat import NEAT
neat = NEAT(ENVIRONMENT_DIR)
neat.generate(2, 1, population=100)

Changing Settings:

neat.settings.max_fitness = 1000
neat.settings.save_intervals = [1, 5, 5000, 10000]
neat.settings.mutation_probabilities['node_activation'] = 0.4

Iterate Populace:

while neat.shouldEvolve():
    current_genome = neat.getGenome()
    result = current_genome.forward([2, 4])
    current_genome.fitness = 3
    neat.nextGenome()

Parallel:

results = neat.parallelTest(environment, args)
neat.parallelEvolve(fitnessEvaluation, results, args)

Get Best:

best_genome = neat.best_specie.representative
best_genome = neat.best_genome

About

Application of a NEAT (NeuroEvolution of Augmenting Topologies) with a Connect 4 environment.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages