saealib.space.PermutationSpace#
- class saealib.space.PermutationSpace(length)[source]#
Bases:
objectA search space whose genomes are permutations of
range(length).- Parameters:
length (int)
Methods
Draw |
|
Validate the batch type and each permutation row. |
Method Details
- PermutationSpace.sample(n, rng=None)[source]#
Draw
nuniformly shuffled permutations.- Parameters:
n (int)
rng (Generator | None)
- Return type:
PermutationBatch