eqdisco.generate.ramped_half_and_half#

eqdisco.generate.ramped_half_and_half(pset, n, rng, min_depth=2, max_depth=6, unique=True, max_tries=20)[source]#

n expressions, half grow and half full, depths ramped over [min_depth, max_depth].

With unique=True structural duplicates are regenerated (up to max_tries times per individual), which increases the initial diversity.