get_best_models: Get best models

View source: R/search.R

get_best_modelsR Documentation

Get best models

Description

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.

Usage

get_best_models(tuner = NULL, num_models = NULL)

Arguments

tuner

A tuner object

num_models

When search is over, one can retrieve the best model(s)

Value

the list of best model(s)


kerastuneR documentation built on March 25, 2022, 9:07 a.m.