Skip to content

A neuroevolution sandbox with NE and NEAT agents. Compatible with gym and ple with the option to add more envs.

License

Notifications You must be signed in to change notification settings

MatheusZickuhr/neuroevolution-sandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

example

import neat

from neuroevolution_sandbox.agents.neat_agent import NeatAgent
from neuroevolution_sandbox.env_adapters.ple_env_adapter import PleEnvAdapter

env_adapter = PleEnvAdapter(env_name='flappybird', render=False, continuous=False)
agent = NeatAgent(env_adapter=env_adapter, config_file_path='config.txt')

agent.train(
    number_of_generations=300,
    reporters=(
        neat.StdOutReporter(True),
        neat.StatisticsReporter(),
    )
)

agent.save('model')

About

A neuroevolution sandbox with NE and NEAT agents. Compatible with gym and ple with the option to add more envs.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages