ray.rllib.algorithms.algorithm.Algorithm.trial_id#

property Algorithm.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