designspace.CustomDomain#
- class designspace.CustomDomain(param_type: Any = None, sampler: Any = None, validator: Any = None)#
Bases:
objectA consumer-supplied type, declared by .custom().
The value is opaque to the library: no bounds, no chart, no domain-level modifiers. Exactly one of param_type or the sampler/validator pair is set.
- param_type#
The ParamType implementation, for the full protocol form.
- Type:
Any
- sampler#
Callback returning a value given a numpy generator, for the shorthand form. Not serializable.
- Type:
Any
- validator#
Callback returning whether a value is acceptable, for the shorthand form. Not serializable.
- Type:
Any