saealib.space.ObjectSpace#
- class saealib.space.ObjectSpace(representation)[source]#
Bases:
objectA search space for arbitrary Python objects.
An ObjectSpace registers no services by default. It can be sampled, selected, and concatenated; components requiring richer operations will be rejected at compile time due to missing services.
- Parameters:
representation (RepresentationSpec)
Methods
Sample n empty object slots (represented by None placeholders). |
|
Check if genomes batch is an ObjectBatch. |
Method Details
- ObjectSpace.__init__(representation)[source]#
- Parameters:
representation (RepresentationSpec)
- Return type:
None
- ObjectSpace.sample(n, rng=None)[source]#
Sample n empty object slots (represented by None placeholders).
- Parameters:
n (int)
rng (Generator | None)
- Return type:
ObjectBatch