get_trial_name#

TuneContext.get_trial_name() → str[source]#

Trial name for the corresponding trial.

Returns:

The trial name, 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.