eqdisco.generate.ptc2#

eqdisco.generate.ptc2(pset, target_size, rng, max_depth=17)[source]#

PTC2: a random tree with about target_size nodes (Luke, 2000).

Open argument slots are expanded in random order with functions until the tree reaches the target size; the remaining slots are filled with terminals.