[Ray] How to get the best model per trial

Hi everyone,

I’m trying to use the feature “hyperparameter_search” but cannot get the best model per the trial. Each trial always get the last value.

I see the code line here calling the Ray tune function to get the best model without the “scope” parameter passed. Default value of that function is “last”.

Is there any way to workaround this?

Thanks!

1 Like

Thanks for raising this.

I am having the same problem with the Optuna backend.