select_definitions function

Select model definition columns

Select model definition columns

lifecycle::badge("experimental")

Select the columns that define the models, such as the formula terms and hyperparameters.

If an expected column is not in the results tibble, it is simply ignored.

select_definitions(results, unnest_hparams = TRUE, additional_includes = NULL)

Arguments

  • results: Results tibble. E.g. from cross_validate() or evaluate().
  • unnest_hparams: Whether to unnest the HParams column. (Logical)
  • additional_includes: Names of additional columns to select. (Character)

Returns

The model definition columns from the results tibble.

Author(s)

Ludvig Renbo Olsen, r-pkgs@ludvigolsen.dk

  • Maintainer: Ludvig Renbo Olsen
  • License: MIT + file LICENSE
  • Last published: 2025-03-07