Skip to content

Instantly share code, notes, and snippets.

View wellecks's full-sized avatar

Sean Welleck wellecks

  • Carnegie Mellon University
  • Pittsburgh
View GitHub Profile
"""Implementation of NEAT.
python neat.py --task {xor, lunar, cartpole}
See the post at https://wellecks.wordpress.com/ for details.
Parts of this implementation are based on Neat-Python.
"""
from itertools import count
import numpy as np
import math