saealib.space.SearchSpace#
- class saealib.space.SearchSpace(*args, **kwargs)[source]#
Bases:
ProtocolProtocol for an optimization search space.
A SearchSpace owns representation identity, service registry, genome sampling, and genome validation.
Methods
Draw n sampled genomes from the space. |
|
Validate a batch of genomes against space constraints. |
Method Details
- SearchSpace.__init__(*args, **kwargs)#
- SearchSpace.sample(n, rng=None)[source]#
Draw n sampled genomes from the space.
- Parameters:
n (int)
rng (Generator | None)
- Return type:
GenomeBatch