ray.air.session.get_trial_dir() str[source]#

Log directory corresponding to the trial directory for a Tune session. If calling from a Train session, this will give the trial directory of its parent Tune session.

from ray import tune
from ray.air import session

def train_func():
    # Example:
    # >>> session.get_trial_dir()
    # ~/ray_results/<exp-name>/<trial-dir>

tuner = tune.Tuner(train_func)

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