ray.train.context.TrainContext.get_trial_id#
- TrainContext.get_trial_id() str [source]#
Trial id for the corresponding trial.
PublicAPI (beta): This API is in beta and may change before becoming stable.
Warning
DEPRECATED: This API is deprecated and may be removed in future Ray releases.
get_trial_id
is deprecated because the concept of aTrial
will soon be removed in Ray Train.Ray Train will no longer assume that it’s running within a Ray TuneTrial
in the future. See this issue for more context and migration options: ray-project/ray#49454. Disable these warnings by setting the environment variable: RAY_TRAIN_ENABLE_V2_MIGRATION_WARNINGS=0