Close a hyperparameter grid: rank the gathered models on a metric from their fit statistics and output the best one unchanged, with a ranking of every candidate and the map item values that produced it. Use it as the reduce after a fit block mapped over base.map_grid. With direction: auto, metrics containing accuracy or r_squared are maximised and all others (rmse, mae, log_loss, aic, ...) minimised; ties keep map order. An unknown metric fails, listing the metrics the models have.