create_leaderboard
async
¶
create_leaderboard(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
name: Optional[LeaderboardName] = None,
type: Optional[LeaderboardType] = None,
description: Optional[LeaderboardDescription] = None,
required_metrics: Optional[LeaderboardRequiredMetricList] = None,
client_token: Optional[LeaderboardClientToken] = None,
tags: Optional[TagList] = None,
) -> CreateLeaderboardResponse
Creates a leaderboard. A leaderboard ranks candidates, such as your models, by the evaluation metrics that you add to it with AddCandidate.
The leaderboard name must be unique in your account in the current Region. If a leaderboard with the same name already exists, CreateLeaderboard returns a ResourceAlreadyExists error.
Parameters:
-
name(Optional[LeaderboardName], default:None) –The name of the leaderboard. The name must be unique in your account in the current Region.
-
type(Optional[LeaderboardType], default:None) –The type of the leaderboard. The type determines what kind of candidates the leaderboard ranks.
-
description(Optional[LeaderboardDescription], default:None) –A description of the leaderboard.
-
required_metrics(Optional[LeaderboardRequiredMetricList], default:None) –The metrics that you expect each candidate on the leaderboard to report, grouped by evaluation criterion. SageMaker stores this list with the leaderboard and returns it in
GetLeaderboard.AddCandidatedoesn't check evaluation metrics against this list. You can't change the list after you create the leaderboard. -
client_token(Optional[LeaderboardClientToken], default:None) –A unique, case-sensitive identifier for the request. If you don't specify a client token, the Amazon Web Services SDKs and the Amazon Web Services CLI generate one for you.
-
tags(Optional[TagList], default:None) –Tags to apply to the leaderboard. You can add tags to your leaderboard in the same way you add them in other Amazon Web Services services that support tagging. For more information about tagging Amazon Web Services resources, see Tagging your Amazon Web Services resources in the Tagging Amazon Web Services Resources User Guide.
Raises:
-
ConflictException–There was a conflict when you attempted to modify a SageMaker entity such as an
ExperimentorArtifact. -
ResourceAlreadyExists–The resource that you are trying to create already exists. Use a different resource name, or delete the existing resource before retrying.
-
ResourceLimitExceeded–You have exceeded an SageMaker resource limit. For example, you might have too many training jobs created.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/async_sage_maker.py
5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 | |