create_leaderboard
¶
create_leaderboard(
*,
config_overrides: Optional[SageMakerClientConfig] = 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/sage_maker.py
5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 | |