list_trials
async
¶
list_trials(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = 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/async_sage_maker.py
29459 29460 29461 29462 29463 29464 29465 29466 29467 29468 29469 29470 29471 29472 29473 29474 29475 29476 29477 29478 29479 29480 29481 29482 29483 29484 29485 29486 29487 29488 29489 29490 29491 29492 29493 29494 29495 29496 29497 29498 29499 29500 29501 29502 29503 29504 29505 29506 29507 29508 29509 29510 29511 29512 29513 29514 29515 29516 29517 29518 29519 29520 29521 29522 29523 29524 29525 29526 29527 29528 29529 29530 29531 29532 29533 29534 29535 | |