The function for retrieving the top best models with hyperparameters Returns the best model(s), as determined by the tuner's objective. The models are loaded with the weights corresponding to their best checkpoint (at the end of the best epoch of best trial). This method is only a convenience shortcut. For best performance, It is recommended to retrain your Model on the full dataset using the best hyperparameters found during search.
get_best_models(tuner = NULL, num_models = NULL)
A tuner object
When search is over, one can retrieve the best model(s)
the list of best model(s)