Bedrock / Client / get_custom_model
get_custom_model#
- Bedrock.Client.get_custom_model(**kwargs)#
Get the properties associated with a Bedrock custom model that you have created.For more information, see Custom models in the Bedrock User Guide.
See also: AWS API Documentation
Request Syntax
response = client.get_custom_model( modelIdentifier='string' )
- Parameters:
modelIdentifier (string) –
[REQUIRED]
Name or ARN of the custom model.
- Return type:
dict
- Returns:
Response Syntax
{ 'baseModelArn': 'string', 'creationTime': datetime(2015, 1, 1), 'hyperParameters': { 'string': 'string' }, 'jobArn': 'string', 'jobName': 'string', 'modelArn': 'string', 'modelKmsKeyArn': 'string', 'modelName': 'string', 'outputDataConfig': { 's3Uri': 'string' }, 'trainingDataConfig': { 's3Uri': 'string' }, 'trainingMetrics': { 'trainingLoss': ... }, 'validationDataConfig': { 'validators': [ { 's3Uri': 'string' }, ] }, 'validationMetrics': [ { 'validationLoss': ... }, ] }
Response Structure
(dict) –
baseModelArn (string) –
ARN of the base model.
creationTime (datetime) –
Creation time of the model.
hyperParameters (dict) –
Hyperparameter values associated with this model.
(string) –
(string) –
jobArn (string) –
Job ARN associated with this model.
jobName (string) –
Job name associated with this model.
modelArn (string) –
ARN associated with this model.
modelKmsKeyArn (string) –
The custom model is encrypted at rest using this key.
modelName (string) –
Model name associated with this model.
outputDataConfig (dict) –
Output data configuration associated with this custom model.
s3Uri (string) –
The S3 URI where the output data is stored.
trainingDataConfig (dict) –
Information about the training dataset.
s3Uri (string) –
The S3 URI where the training data is stored.
trainingMetrics (dict) –
The training metrics from the job creation.
trainingLoss (float) –
Loss metric associated with the custom job.
validationDataConfig (dict) –
Array of up to 10 validators.
validators (list) –
Information about the validators.
(dict) –
Information about a validator.
s3Uri (string) –
The S3 URI where the validation data is stored.
validationMetrics (list) –
The validation metrics from the job creation.
(dict) –
The metric for the validator.
validationLoss (float) –
The validation loss associated with this validator.
Exceptions
Bedrock.Client.exceptions.ResourceNotFoundException
Bedrock.Client.exceptions.AccessDeniedException
Bedrock.Client.exceptions.ValidationException
Bedrock.Client.exceptions.InternalServerException
Bedrock.Client.exceptions.ThrottlingException