saealib.EvaluationRequest#
- class saealib.EvaluationRequest(request_id, candidate_ids, payload=None, outputs=('f', 'g', 'cv'), metadata=None, *, x=None)[source]#
Bases:
objectInput payload whose snapshot semantics depend on how it was built.
Passing an existing
GenomeBatchdirectly, such aspop.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 callsgenomes.take(indices)to construct an independent batch value, which can be treated as the request’s input snapshot.- Parameters:
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)[source]#
- Parameters:
request_id (int64)
candidate_ids (ndarray)
payload (GenomeBatch | ndarray | None)
outputs (tuple[str, ...])
metadata (Mapping[str, Any] | None)
x (ndarray | None)
- Return type:
None