eqdisco.models.enumerate_expressions#

eqdisco.models.enumerate_expressions(pset, max_size, max_params=3, prune_nesting=True, max_candidates=200000)[source]#

All canonical expressions with at most max_size nodes.

Pruning rules: arguments of commutative functions are ordered; no function has only constant arguments (a constant subtree is a single parameter); no a - a or a / a; no directly nested inverse pairs (exp(log(.))); with prune_nesting no transcendental function directly inside another; at most max_params parameters.

Examples using eqdisco.models.enumerate_expressions#

The size of the search space and the meaning of complexity

The size of the search space and the meaning of complexity