saealib.space.SamplingService#

class saealib.space.SamplingService(*args, **kwargs)[ソース]#

ベースクラス: Protocol

Service for drawing new genomes from a SearchSpace.

Methods

__init__

sample

Draw n genomes from the space.

Method Details

SamplingService.__init__(*args, **kwargs)#
SamplingService.sample(n, rng=None)[ソース]#

Draw n genomes from the space.

パラメータ:
  • n (int)

  • rng (Generator | None)

戻り値の型:

GenomeBatch