designspace.SymbolicDomain#
- class designspace.SymbolicDomain(signature: Any, primitives: Any, max_depth: int, validators: Any = None, sampler: Any = None)#
Bases:
objectA symbolic expression tree, declared by .symbolic().
Values have the shape {“ast”: <node>, “source”: <str>}, where “source” is optional and never cross-checked against the tree. Non-generative unless sampler is given.
- signature#
The Signature: argument names and types, and the return type. Argument names become the tree’s usable variables.
- Type:
Any
- primitives#
The declared vocabulary: operator names, Primitive entries with arities, and literal ranges.
- Type:
Any
- validators#
Extra checks run against the tree. Not serializable.
- Type:
Any
- sampler#
Makes the parameter generative when present. Not serializable.
- Type:
Any