- Tuner.fit() ray.tune.result_grid.ResultGrid #
Executes hyperparameter tuning job as configured and returns result.
Failure handling: For the kind of exception that happens during the execution of a trial, one may inspect it together with stacktrace through the returned result grid. See
ResultGridfor reference. Each trial may fail up to a certain number. This is configured by
Exception that happens beyond trials will be thrown by this method as well. In such cases, there will be instruction like the following printed out at the end of console output to inform users on how to resume.
import os from ray.tune import Tuner trainable = ... tuner = Tuner.restore( os.path.expanduser("~/ray_results/tuner_resume"), trainable=trainable ) tuner.fit()
RayTaskError – If user-provided trainable raises an exception
TuneError – General Ray Tune error.