Skip to content
/ NEATer Public

A fast Python neuroevolution library for evolutionary machine learning

License

Notifications You must be signed in to change notification settings

ju-leon/NEATer

Repository files navigation

!!! WORK IN PROGRESS !!!

neater

NEATer - a faster NEAT implementation

NEATer is a neater implementation of neat-python, focused on speed and ease of use. The genectic crossovers and mutations are entirely written in C++ to increase computation speed. NEATer provides a convienent Python interface and is fully compatible with OpenAI environments.

Installation:

pip install git+https://github.com/ju-leon/NEATer.git

Quick and simple setup:

from neater import Neat, Agent
import gym

env = gym.make('CartPole-v1')

strategy = Neat(population_size=300)
agent = Agent(env, strategy, 4, 2)

agent.solve(max_generations=10,
            epoch_len=800,
            discrete=True,
            render=False)