saealib.EvaluationRequest#

class saealib.EvaluationRequest(request_id, candidate_ids, payload=None, outputs=('f', 'g', 'cv'), metadata=None, *, x=None)[ソース]#

ベースクラス: object

Input payload whose snapshot semantics depend on how it was built.

Passing an existing GenomeBatch directly, such as pop.genomes, does not guarantee that the request owns an immutable snapshot of the input: a Population-backed batch may remain a view of live storage. The normal planner path instead calls genomes.take(indices) to construct an independent batch value, which can be treated as the request's input snapshot.

パラメータ:
  • request_id (int64)

  • candidate_ids (ndarray)

  • payload (GenomeBatch)

  • outputs (tuple[str, ...])

  • metadata (Mapping[str, Any])

  • x (np.ndarray | None)

Methods

Method Details

EvaluationRequest.__init__(request_id, candidate_ids, payload=None, outputs=('f', 'g', 'cv'), metadata=None, *, x=None)[ソース]#
パラメータ:
  • request_id (int64)

  • candidate_ids (ndarray)

  • payload (GenomeBatch | ndarray | None)

  • outputs (tuple[str, ...])

  • metadata (Mapping[str, Any] | None)

  • x (ndarray | None)

戻り値の型:

None