saealib.SerialEvaluator#
- class saealib.SerialEvaluator[ソース]#
ベースクラス:
EvaluatorDefault evaluator: evaluates each candidate sequentially.
Methods
Acknowledge one contiguous update sequence. |
|
Return whether pending work can be restored after checkpoint load. |
|
Cancel submitted work when the backend supports cancellation. |
|
Return unacknowledged updates for a handle. |
|
Return the evaluator family contract. |
|
Detach work whose result must no longer be delivered. |
|
Evaluate a batch, using the problem's optional evaluation adapter. |
|
Evaluate a request while exposing its context to the adapter. |
|
Return whether lifecycle adapter methods are only partly overridden. |
|
Restore a pending request or raise when unsupported. |
|
Submit a request through the synchronous adapter. |
|
Return whether failed batch submission can be rolled back. |
Method Details
- SerialEvaluator.__init__()#
- SerialEvaluator.acknowledge(handle, sequence)#
Acknowledge one contiguous update sequence.
- パラメータ:
handle (EvaluationHandle)
sequence (int)
- 戻り値の型:
None
- SerialEvaluator.can_reattach(pending)#
Return whether pending work can be restored after checkpoint load.
- パラメータ:
pending (PendingEvaluation)
- 戻り値の型:
bool
- SerialEvaluator.cancel(handle)#
Cancel submitted work when the backend supports cancellation.
- パラメータ:
handle (EvaluationHandle)
- 戻り値の型:
bool
- SerialEvaluator.collect(handle, *, wait=True)#
Return unacknowledged updates for a handle.
- パラメータ:
handle (EvaluationHandle)
wait (bool)
- 戻り値の型:
list[EvaluationUpdate]
- SerialEvaluator.contract()#
Return the evaluator family contract.
- 戻り値の型:
- SerialEvaluator.detach(handle)#
Detach work whose result must no longer be delivered.
- パラメータ:
handle (EvaluationHandle)
- 戻り値の型:
bool
- SerialEvaluator.evaluate_batch(x, problem)[ソース]#
Evaluate a batch, using the problem's optional evaluation adapter.
- パラメータ:
x (GenomeBatch | np.ndarray)
problem (Problem)
- 戻り値の型:
- SerialEvaluator.evaluate_request(request, problem)[ソース]#
Evaluate a request while exposing its context to the adapter.
- パラメータ:
request (EvaluationRequest)
problem (Problem)
- 戻り値の型:
- classmethod SerialEvaluator.has_partial_lifecycle_override()#
Return whether lifecycle adapter methods are only partly overridden.
- 戻り値の型:
bool
- SerialEvaluator.reattach(pending, problem)#
Restore a pending request or raise when unsupported.
- パラメータ:
pending (PendingEvaluation)
problem (Problem)
- 戻り値の型:
- SerialEvaluator.submit(request, problem)#
Submit a request through the synchronous adapter.
- パラメータ:
request (EvaluationRequest)
problem (Problem)
- 戻り値の型:
- SerialEvaluator.supports_batch_rollback()#
Return whether failed batch submission can be rolled back.
- 戻り値の型:
bool