get_trial_id#

TuneContext.get_trial_id() → str[source]#

Trial id for the corresponding trial.

Returns:

The trial ID, or None if called outside a Ray Train or Ray Tune function.

Return type:

str

PublicAPI (beta): This API is in beta and may change before becoming stable.