Skip to content

Instantly share code, notes, and snippets.

@macrintr
macrintr / gp_alter.py
Last active January 12, 2023 15:04
Removing "dummy" node need from STGP within DEAP
"""
File name: gp_alter.py
Author: Thomas Macrina
Date created: 03/21/2014
Python Version: 2.7
Overwriting the generate() method within DEAP's gp.py
to remove the need for "dummy" nodes within strongly-typed
individuals.