ray.tune.Trainable.trial_id#

property Trainable.trial_id#

Trial ID for the corresponding trial of this Trainable.

This is not set if not using Tune.

from ray.tune import Trainable

trial_id = Trainable().trial_id