combine_results: Combine Results from Different Folds

View source: R/combine_results.R

combine_resultsR Documentation

Combine Results from Different Folds

Description

Applies combiners: functions that collapse across a list of similarly structured results, to a list of such lists.

Usage

combine_results(results, combiners = NULL, smart_combiners = TRUE)

Arguments

results

A list of lists, corresponding to each result, with the inner lists corresponding to results from each fold.

combiners

A list with the same names as results, containing combiner function names or functions for each result.

smart_combiners

A logical indicating whether combiners should be guessed from the data type of the results if they are missing.

Details

In theory you should never call this function directly, because it is called automatically by cross_validate. The defaults, combiners guessed based on data type, should work in most cases.

Value

A list of combined results.

See Also

combiners


jeremyrcoyle/origami documentation built on Sept. 10, 2022, 4:28 p.m.