saealib.Evaluator#
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 of design vectors. |
|
Evaluate a request, including its public metadata boundary. |
|
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
- Evaluator.__init__()#
- Evaluator.acknowledge(handle, sequence)[ソース]#
Acknowledge one contiguous update sequence.
- パラメータ:
handle (EvaluationHandle)
sequence (int)
- 戻り値の型:
None
- Evaluator.can_reattach(pending)[ソース]#
Return whether pending work can be restored after checkpoint load.
- パラメータ:
pending (PendingEvaluation)
- 戻り値の型:
bool
- Evaluator.cancel(handle)[ソース]#
Cancel submitted work when the backend supports cancellation.
- パラメータ:
handle (EvaluationHandle)
- 戻り値の型:
bool
- Evaluator.collect(handle, *, wait=True)[ソース]#
Return unacknowledged updates for a handle.
- パラメータ:
handle (EvaluationHandle)
wait (bool)
- 戻り値の型:
list[EvaluationUpdate]
- Evaluator.detach(handle)[ソース]#
Detach work whose result must no longer be delivered.
- パラメータ:
handle (EvaluationHandle)
- 戻り値の型:
bool
- abstractmethod Evaluator.evaluate_batch(x, problem)[ソース]#
Evaluate a batch of design vectors.
- パラメータ:
x (np.ndarray) -- Design vectors to evaluate. shape = (n, dim)
problem (Problem) -- The optimization problem providing the objective and constraints.
- 戻り値:
Batched objective values, raw constraint values, and violations.
- 戻り値の型:
- Evaluator.evaluate_request(request, problem)[ソース]#
Evaluate a request, including its public metadata boundary.
- パラメータ:
request (EvaluationRequest)
problem (Problem)
- 戻り値の型:
- classmethod Evaluator.has_partial_lifecycle_override()[ソース]#
Return whether lifecycle adapter methods are only partly overridden.
- 戻り値の型:
bool
- Evaluator.reattach(pending, problem)[ソース]#
Restore a pending request or raise when unsupported.
- パラメータ:
pending (PendingEvaluation)
problem (Problem)
- 戻り値の型:
- Evaluator.submit(request, problem)[ソース]#
Submit a request through the synchronous adapter.
- パラメータ:
request (EvaluationRequest)
problem (Problem)
- 戻り値の型: