Getting bracket by trial_id in AsyncHyperbandScheduler

How severe does this issue affect your experience of using Ray?

  • Low: It annoys or frustrates me for a moment.

Hello!
I was trying to figure out which bracket is the most effective one, after a HyperBand run. I was thinking of plotting trials colored by bracket so that I could compare them.
But I couldn’t find anywhere in logged results how to connect a trial to its bracket. Is there a way to do that?

Hello @Pavel, unfortunately we do not log the “bracket ID” or something similar to the Trial results.

However, you could do something like this

scheduler = AsyncHyperbandScheduler()
# ...
analysis = tune.run(
    trainable,
    scheduler=scheduler,
    # ...
)
brackets = scheduler._hyperbands
print(brackets)  # Or do something else

to examine the brackets after training.

Please note that these are undocumented internal APIs and might change without notice.

1 Like