saealib.space.ObjectSpace#
- class saealib.space.ObjectSpace(representation)[ソース]#
ベースクラス:
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.
- パラメータ:
representation (RepresentationSpec)
Methods
Sample n empty object slots (represented by None placeholders). |
|
Check if genomes batch is an ObjectBatch. |
Method Details
- ObjectSpace.__init__(representation)[ソース]#
- パラメータ:
representation (RepresentationSpec)
- 戻り値の型:
None
- ObjectSpace.sample(n, rng=None)[ソース]#
Sample n empty object slots (represented by None placeholders).
- パラメータ:
n (int)
rng (Generator | None)
- 戻り値の型:
ObjectBatch