normalize_summary_stat: Find the best performing model in a list

Description Usage Arguments Details Value

View source: R/best_summary_stat.R

Description

best_summary_stat returns the index of an element in a list of "tune" objects with the best combination of performance statistics.

Usage

1
normalize_summary_stat(tune_list, stat_name)

Arguments

tune_list

A list of "tune" objects

stat_name_list

A character vector of which statistics to consider. The default is to consider all statistics, provided through the character vector c("MAE", "Rsquared", "RMSE").

Details

This function is a helper for [tune_helper()].

The function relies on [caret::defaultSummary()]. It calls on normalize_summary_stat, which rescales the summary statistics of the list of objects so all statistics given to the function can be evaluated together.

Value

An integer index of the list where the best model occurs. Uses which.max, so if multiple maximums occur, the first will be returned. If there are issues with finding the maximum, the default return is 1.


awqx/qsarr documentation built on Oct. 2, 2021, 7:05 a.m.