- Tuner.fit() ray.tune.result_grid.ResultGrid [source]#
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.
Please use tuner = Tuner.restore(“~/ray_results/tuner_resume”) to resume.
RayTaskError – If user-provided trainable raises an exception
TuneError – General Ray Tune error.