Returns an Evaluation that includes metadata as well as the current status of the Evaluation.
Parameters:
-
evaluation_id
(EntityId)
–
The ID of the Evaluation to retrieve. The evaluation of each MLModel is recorded and cataloged. The ID provides the means to access the information.
Raises:
Source code in docs_src/capo_machine_learning/_services/machine_learning.py
| def get_evaluation(
self,
evaluation_id: "capo_machine_learning.types.entity_id.EntityId",
*,
config_overrides: Optional[MachineLearningClientConfig] = None,
) -> "capo_machine_learning.types.get_evaluation_output.GetEvaluationOutput":
"""<p>Returns an <code>Evaluation</code> that includes metadata as well as the current status of the <code>Evaluation</code>.</p>
Args:
evaluation_id: <p>The ID of the <code>Evaluation</code> to retrieve. The evaluation of each <code>MLModel</code> is recorded and cataloged. The ID provides the means to access the information. </p>
Raises:
capo_machine_learning.errors.internal_server_exception.InternalServerException: <p>An error on the server occurred when trying to process a request.</p>
capo_machine_learning.errors.invalid_input_exception.InvalidInputException: <p>An error on the client occurred. Typically, the cause is an invalid input value.</p>
capo_machine_learning.errors.resource_not_found_exception.ResourceNotFoundException: <p>A specified resource cannot be located.</p>
capo_machine_learning.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_machine_learning.types.get_evaluation_input.GetEvaluationInput]",
) -> OperationResponse[
"capo_machine_learning.types.get_evaluation_output.GetEvaluationOutput"
]:
import capo_machine_learning._operations.amazon_ml_20141212.get_evaluation
output, http_response = (
capo_machine_learning._operations.amazon_ml_20141212.get_evaluation.get_evaluation(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetEvaluation")
)
input_: capo_machine_learning.types.get_evaluation_input.GetEvaluationInput = {
"evaluation_id": evaluation_id
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|