There are more AWS SDK examples available in the AWS Doc SDK Examples
Use ListModels with an AWS SDK
The following code example shows how to use ListModels.
For more information, see Viewing your models.
- Python
-
- SDK for Python (Boto3)
-
Note
There's more on GitHub. Find the complete example and learn how to set up and run in the AWS Code Examples Repository
. class Models: @staticmethod def describe_models(lookoutvision_client, project_name): """ Gets information about all models in a Lookout for Vision project. :param lookoutvision_client: A Boto3 Lookout for Vision client. :param project_name: The name of the project that you want to use. """ try: response = lookoutvision_client.list_models(ProjectName=project_name) print("Project: " + project_name) for model in response["Models"]: Models.describe_model( lookoutvision_client, project_name, model["ModelVersion"] ) print() print("Done...") except ClientError: logger.exception("Couldn't list models.") raise-
For API details, see ListModels in AWS SDK for Python (Boto3) API Reference.
-
DetectAnomalies
ListProjects