list_candidates
¶
list_candidates(
*,
config_overrides: Optional[SageMakerClientConfig] = None,
leaderboard_arn: Optional[LeaderboardArn] = None,
filters: Optional[LeaderboardCandidateFilters] = None,
sort_by: Optional[LeaderboardSortBy] = None,
sort_metric: Optional[LeaderboardSortMetric] = None,
sort_order: Optional[LeaderboardSortOrder] = None,
max_results: Optional[LeaderboardMaxResults] = None,
next_token: Optional[NextToken] = None,
) -> ListCandidatesResponse
Lists the candidates on a leaderboard. You can filter the candidates by dataset or by evaluation criteria, and sort them by creation time or by a metric.
For each evaluation criterion, ListCandidates returns the metrics from the candidate's most recent evaluation run. To get all of a candidate's evaluation metrics, use GetCandidate.
Changes that you make with AddCandidate or DeleteCandidate can take a short time to appear in ListCandidates results.
Parameters:
-
leaderboard_arn(Optional[LeaderboardArn], default:None) –The Amazon Resource Name (ARN) of the leaderboard.
-
filters(Optional[LeaderboardCandidateFilters], default:None) –Filters that return only the candidates that match all of the filter values that you specify.
-
sort_by(Optional[LeaderboardSortBy], default:None) –The field to sort the candidates by. If you specify
METRIC, you must also specifySortMetric. If you don't specifySortBy, the candidates are sorted byCandidateId. -
sort_metric(Optional[LeaderboardSortMetric], default:None) –The metric to sort the candidates by. Required when
SortByisMETRIC. The response includes only the candidates whose most recent evaluation run reports this metric. -
sort_order(Optional[LeaderboardSortOrder], default:None) –The sort order. The default is
DESCENDING. -
max_results(Optional[LeaderboardMaxResults], default:None) –The maximum number of candidates to return in the response. The default is 20.
-
next_token(Optional[NextToken], default:None) –If the result of the previous
ListCandidatesrequest was truncated, the response includes aNextToken. To retrieve the next set of candidates, use the token in the next request. Use the sameFilters,SortBy,SortMetric, andSortOrderas in the previous request. Otherwise,ListCandidatesreturns aValidationExceptionerror.
Raises:
-
ResourceNotFound–Resource being access is not found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/sage_maker.py
18846 18847 18848 18849 18850 18851 18852 18853 18854 18855 18856 18857 18858 18859 18860 18861 18862 18863 18864 18865 18866 18867 18868 18869 18870 18871 18872 18873 18874 18875 18876 18877 18878 18879 18880 18881 18882 18883 18884 18885 18886 18887 18888 18889 18890 18891 18892 18893 18894 18895 18896 18897 18898 18899 18900 18901 18902 18903 18904 18905 18906 18907 18908 18909 18910 18911 18912 18913 18914 18915 18916 18917 18918 18919 18920 18921 18922 18923 18924 18925 | |