make_sample_indices_unique: Make the output type ID values of sample forecasts distinct...

View source: R/linear_pool_sample.R

make_sample_indices_uniqueR Documentation

Make the output type ID values of sample forecasts distinct for different models

Description

Make the output type ID values of sample forecasts distinct for different models

Usage

make_sample_indices_unique(model_out_tbl)

Arguments

model_out_tbl

an object of class model_out_tbl with component model outputs (e.g., predictions).

Details

The new output_type_id column values will follow one of two patterns, depending on whether the column is detected to be numeric:

  1. If the output type ID is not numeric (may be a character): A concatenation of the prediction's model ID and original output type ID

  2. If the output type ID is numeric: A numeric representation of the above pattern rendered as a factor.

Value

a model_out_tbl object with unique output type ID values for different models but otherwise identical to the input model_out_tbl.


hubEnsembles documentation built on June 8, 2025, 1:26 p.m.