list_trials
¶
list_trials(
*,
config_overrides: Optional[SageMakerClientConfig] = None,
experiment_name: Optional[ExperimentEntityName] = None,
trial_component_name: Optional[ExperimentEntityName] = None,
created_after: Optional[Timestamp] = None,
created_before: Optional[Timestamp] = None,
sort_by: Optional[SortTrialsBy] = None,
sort_order: Optional[SortOrder] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
) -> ListTrialsResponse
Lists the trials in your account. Specify an experiment name to limit the list to the trials that are part of that experiment. Specify a trial component name to limit the list to the trials that associated with that trial component. The list can be filtered to show only trials that were created in a specific time range. The list can be sorted by trial name or creation time.
Parameters:
-
experiment_name(Optional[ExperimentEntityName], default:None) –A filter that returns only trials that are part of the specified experiment.
-
trial_component_name(Optional[ExperimentEntityName], default:None) –A filter that returns only trials that are associated with the specified trial component.
-
created_after(Optional[Timestamp], default:None) –A filter that returns only trials created after the specified time.
-
created_before(Optional[Timestamp], default:None) –A filter that returns only trials created before the specified time.
-
sort_by(Optional[SortTrialsBy], default:None) –The property used to sort results. The default value is
CreationTime. -
sort_order(Optional[SortOrder], default:None) –The sort order. The default value is
Descending. -
max_results(Optional[MaxResults], default:None) –The maximum number of trials to return in the response. The default value is 10.
-
next_token(Optional[NextToken], default:None) –If the previous call to
ListTrialsdidn't return the full set of trials, the call returns a token for getting the next set of trials.
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
29096 29097 29098 29099 29100 29101 29102 29103 29104 29105 29106 29107 29108 29109 29110 29111 29112 29113 29114 29115 29116 29117 29118 29119 29120 29121 29122 29123 29124 29125 29126 29127 29128 29129 29130 29131 29132 29133 29134 29135 29136 29137 29138 29139 29140 29141 29142 29143 29144 29145 29146 29147 29148 29149 29150 29151 29152 29153 29154 29155 29156 29157 29158 29159 29160 29161 29162 29163 29164 29165 29166 29167 29168 29169 29170 29171 | |