Returns a description of the specified algorithm that is in your account.
Parameters:
-
algorithm_name
(Optional[ArnOrName], default:
None
)
–
The name of the algorithm to describe.
Raises:
Source code in docs_src/capo_sagemaker/_services/sage_maker.py
| def describe_algorithm(
self,
*,
config_overrides: Optional[SageMakerClientConfig] = None,
algorithm_name: Optional["capo_sagemaker.types.arn_or_name.ArnOrName"] = None,
) -> "capo_sagemaker.types.describe_algorithm_output.DescribeAlgorithmOutput":
"""<p>Returns a description of the specified algorithm that is in your account.</p>
Args:
algorithm_name: <p>The name of the algorithm to describe.</p>
Raises:
capo_sagemaker.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_sagemaker.types.describe_algorithm_input.DescribeAlgorithmInput]",
) -> OperationResponse[
"capo_sagemaker.types.describe_algorithm_output.DescribeAlgorithmOutput"
]:
import capo_sagemaker._operations.sage_maker.describe_algorithm
output, http_response = (
capo_sagemaker._operations.sage_maker.describe_algorithm.describe_algorithm(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeAlgorithm")
)
input_: capo_sagemaker.types.describe_algorithm_input.DescribeAlgorithmInput = {}
if algorithm_name is not None:
input_["algorithm_name"] = algorithm_name
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|