Skip to content

AddCandidateRequest

Source code in docs_src/capo_sagemaker/types/add_candidate_request.py
class AddCandidateRequest(TypedDict, closed=True):
    leaderboard_arn: NotRequired["capo_sagemaker.types.leaderboard_arn.LeaderboardArn"]
    """<p>The Amazon Resource Name (ARN) of the leaderboard to add the candidate to.</p>"""
    display_name: NotRequired[
        "capo_sagemaker.types.leaderboard_candidate_display_name.LeaderboardCandidateDisplayName"
    ]
    """<p>A display name for the candidate. SageMaker uses this value only when it creates the candidate. If the candidate already exists, SageMaker keeps its existing display name. The display name can't contain control characters or format characters.</p>"""
    labels: NotRequired[
        "capo_sagemaker.types.leaderboard_label_map.LeaderboardLabelMap"
    ]
    """<p>Key-value pairs that describe the candidate. Labels aren't part of the candidate's identity. If the candidate already exists, these labels replace its existing labels. To remove all labels, specify an empty map. If you don't specify labels, the existing labels are kept. Label keys and values can contain only Unicode letters, numbers, spaces, and the following characters: <code>_ . : / = + - @</code>.</p>"""
    candidate_config: NotRequired[
        "capo_sagemaker.types.leaderboard_candidate_config.LeaderboardCandidateConfig"
    ]
    """<p>The configuration that identifies the candidate. Candidates with the same configuration have the same <code>CandidateId</code>.</p>"""
    evaluation_results: NotRequired[
        "capo_sagemaker.types.leaderboard_evaluation_result_list.LeaderboardEvaluationResultList"
    ]
    """<p>The evaluation metrics to add to the candidate, grouped by evaluation criterion.</p>"""
    client_token: NotRequired[
        "capo_sagemaker.types.leaderboard_client_token.LeaderboardClientToken"
    ]
    """<p>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.</p>"""

candidate_config instance-attribute

candidate_config: NotRequired[LeaderboardCandidateConfig]

The configuration that identifies the candidate. Candidates with the same configuration have the same CandidateId.

client_token instance-attribute

client_token: NotRequired[LeaderboardClientToken]

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.

display_name instance-attribute

display_name: NotRequired[LeaderboardCandidateDisplayName]

A display name for the candidate. SageMaker uses this value only when it creates the candidate. If the candidate already exists, SageMaker keeps its existing display name. The display name can't contain control characters or format characters.

evaluation_results instance-attribute

evaluation_results: NotRequired[LeaderboardEvaluationResultList]

The evaluation metrics to add to the candidate, grouped by evaluation criterion.

labels instance-attribute

labels: NotRequired[LeaderboardLabelMap]

Key-value pairs that describe the candidate. Labels aren't part of the candidate's identity. If the candidate already exists, these labels replace its existing labels. To remove all labels, specify an empty map. If you don't specify labels, the existing labels are kept. Label keys and values can contain only Unicode letters, numbers, spaces, and the following characters: _ . : / = + - @.

leaderboard_arn instance-attribute

leaderboard_arn: NotRequired[LeaderboardArn]

The Amazon Resource Name (ARN) of the leaderboard to add the candidate to.