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')
A neuroevolution sandbox with NE and NEAT agents. Compatible with gym and ple with the option to add more envs.
License
MatheusZickuhr/neuroevolution-sandbox
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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 0
No packages published